Re: How expensive is a stub duplicate/release pair?



Hi!

On Tue, Apr 16, 2002 at 06:34:25PM +0200, ERDI Gergo wrote:
> Hi,
> 
> How expensive is it to do the following:
> 	dupl = CORBA_Object_duplicate (orig);
> 	CORBA_Object_release (dupl);
> ? Does it involve any roundtrips to the server?

No, it doesn't. It only increments/decrements the internal proxy
object's counter.

> I'm asking because I can
> either complicate the ORBit2/C++ internals and avoid some of these, or
> decide not to care if it's just some counter++/counter-- stuff.
> 

It should be something like this. (I mean counter++/counter--).

	Best regards.
	diego


-- 
Diego Sevilla Ruiz  http://ditec.um.es/~dsevilla  dsevilla@um.es  \    /\
Dpto. Ingeniería y Tecnología de Computadores http://ditec.um.es   )  ( ')
Visiting Extreme! Computing Lab       http://extreme.indiana.edu  (  /  )
Indiana University, Bloomington               http://www.iub.edu   \(__)|



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