From: John M. <joh...@ya...> - 2001-03-09 14:38:51
|
I tried CPython first and I was thrilled to get 2-3 times better performance. But it doesn't support multi-threading. (Unless I completely misunderstand which is possible.) My impression is that CPython threads serially take turns using the interpreter. That was a dead end for me. That plus the need to use Jython (Java) classlibs to access our CORBA orb. Plus the push in our group for Java. Convert to C or C++. My impression is that I can only expect about 50% better performance than using Java. Plus my code now has reached the limits of the hardware and so, in that respect, there is no room for further improvement. Although I agree that it would still be better to put less stress on the machine that I have to share with many other processes. A more efficient program would help in that respect but... Recode in C?? The app is tooo complicated. By design, 'C' doesn't afford implementing such deep abstraction. C++ was an early attempt to solve this fundamental problem with OOP but I consider it the 286 (the predecessor to Intel's 386 processor) of OOP languages. A necessary step but I'm proud to have never coded in it the same way I'm proud to have never owned a 286 PC. IMHO, of course. A lot of this stuff is over my head and so it's easy for me to draw incorrect conclusions. --- D-Man <ds...@ri...> wrote: > On Thu, Mar 08, 2001 at 09:59:58AM -0800, John Mudd wrote: > | Any thoughts about developing a tool to convert Jython to Java? > Unlike > | jythonc (which is a great tool!), something to ease the job of > porting > | to Java in order to get better performance. > > You are converting to Java for performance? I haven't heard that one > before. Why not try CPython first? I have heard that CPython is > ~2-3 > times faster than Jython. > > Also, why not convert the Python code to C++ or C if you really want > performance? Well-written C or C++ is lots faster than equally > well-written Java. (This isn't to say that you can't make poorly > written C that is slower than well written Java) > > -D > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |