[omniORB] Python Embedded
Leandro Fanzone
leandro@hasar.com
Thu Nov 14 16:16:01 2002
Thank you for your quick answer.
Thomas Lockhart wrote:
> Given that you can write a server in python, why do you need to embed
> that into a C++ server framework? How about putting the functionality
> you need scripted into a separate server?
Because I think it would be faster if I can get rid of CORBA
marshalling/interprocess communication between the main process and its
script. Sure there's marshalling in the embedding process, but I guess
it will be lighter as it's just one way. Another reason is that as the
scriptable servers are more than one, each script I embed is one less
process running, id est, less resources usage.
> If you are doing some kind of dynamically scripted server, how about
> doing that entirely in python?
Do you mean to implement all the server in Python, the scriptable
portion and the static one? On the one hand, the non-scriptable portion
could be very complex, and I am not confident enough with Python to
write it all using that language. Also that would imply to rewrite lots
of already written C++ code in Python, of course. On the other, this is
a real time system, I can't afford to change the speed of compiled C++
against Python, as I don't know how fast it would be.
> - Thomas
Leandro.