[omniORB] Problem with deeply nested structs.

Duncan Grisby dgrisby@uk.research.att.com
Thu, 21 Mar 2002 16:10:31 +0000


On Thursday 21 March, Bryon Roche wrote:
> On Thu, 2002-03-21 at 05:14, Duncan Grisby wrote:
>     On Friday 15 March, baileyk@schneider.com wrote:
>     
>     It's done in the stubs. Each thing that can be marshalled has an
>     operator >>= that does the marshalling. You can see the recursion
>     there. The way it's structured, it won't be at all easy to add a
>     recursion count.
>     
> How hard would it be to just tack such a count into POA::Current or some
> other thread-local structure?

It would be pretty easy to do that, but also a pretty bad thing to do.
Accessing thread specific storage is expensive, so doing it on every
single recursion would really kill performance.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --