[omniORB] Complex numbers

Marc Eberhard m.a.eberhard at aston.ac.uk
Thu Oct 9 16:07:53 BST 2003


On Thu, Oct 09, 2003 at 08:55:04AM -0500, scott.rediger at teradyne.com wrote:
> 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.

OK, thanks. Got it!

> 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.

That is unfortunately the case. The field is passed very often between
different components in the application. It's a numerical simulation with
several thousands of steps for each run.

> However, it comes down to performance vs. maintainability/portability. I

Yes, indeed.

> 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.

That's different here. Each component does a rather small (quick) job and
then passes the field on.

Thanks,
Marc
_______________________________________________________________________________

email: marc at greenie.net, marc.eberhard at alumni.tum.de, marc at affs.org.uk
email: m.a.eberhard at aston.ac.uk, web: http://www.aston.ac.uk/~eberhama/



More information about the omniORB-list mailing list