[omniORB] Complex numbers

scott.rediger at teradyne.com scott.rediger at teradyne.com
Thu Oct 9 09:55:04 BST 2003


>Can you give me an example? What's the runtime overhead for this
translation?

When I say xlate() function, I mean a simple field-by-field translation:

      void xlate_complex( complex& out, const IDLMODULE::Complex& in );

This function simply copies (field-by-field) values from the in parameter
to the out parameter.

As for runtime overhead, it is obviously more than the pointer manipulation
you stated earlier. If you're processing huge amounts of complex numbers,
then yes, you will definately notice a difference using translation
functions. However, it comes down to performance vs.
maintainability/portability. I don't know what your specific requirements
are for performance, but in the systems I have worked on, the interface and
its translation time is insignificant compared to the amount of time spent
on the server side to fulfil requests.

Scott Rediger





More information about the omniORB-list mailing list