Re: A short interface design question



Hi Peter,

On 22 May 2001, Peter Williams wrote:
>       I'm working on a little project that involves some Bonobo 
> components. I want one component to send a list of filenames (around, 
> say, 200 items long) to another asynchronously and I'd appreciate some
> advice on the best way to do this.
  
        Good question.

>       * Is it better to use a BonoboListener and send one event for 
> each file? Or is the CORBA overhead significant?
        
        The overhead is not massive no - this is a fair way to do it.

>       * Is it better to return something like a BonoboStream and write    
> the list to that? Or is that vercomplicated?
        
        The BonoboStream interface is not asynchronous so this probably   
doesn't help you.

>       * Or should I write my own little interface for sending the
> filenames? Is this somehow better than BonoboListener?

        The BonoboListener method is fine, you might like to consider -   
instead of sending individual names, if you have some ability to tell when
a block of names is ready - then you could send a sequence of strings in  
to the listener - which would be ideal.

        Regards,
  
                Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]