[omniORB] Union vs Any

Tamas Morvai Tamas.Morvai@eth.ericsson.se
Wed, 29 Nov 2000 17:43:21 +0100


Hi,

I'd like to use a sequence of "any"s or unions to pass
parameters to my application like this:

typedef sequence<any> AnySeq;

invoke(in AnySeq parameters);

I will only send basic types. So, should I use "any"
or union (which consists of the basic types)?
Which is the better, faster, etc?

/Tamas

PS: I've read that "any" has more run-time overhead.