[omniORB] omniorb and omniorbpy speed
Duncan Grisby
dgrisby@uk.research.att.com
Wed, 29 Nov 2000 10:08:15 +0000
On Wednesday 29 November, Timothy Docker wrote:
> Is there significant python code getting executed as part of the
> request, or do you mean just that constructing python objects via the
> C api is slow?
No, with simple types there is no significant Python code being
executed, although a few Python constructors are run. Building Python
objects, from C or Python, is just slow. It hits the memory allocator
really hard -- every element of your list involves several calls to
malloc().
There are probably a few tweaks which would make it go a little
faster, but not much. I'm not sure it's worth the effort. Do you
really need that much performance from a scripting language? As soon
as you do any actual work, the slowness of Python will far outweigh
the time spent in omniORBpy.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --