From: Tim H. <tim...@ie...> - 2001-03-09 15:17:03
|
----- Original Message ----- From: "John Mudd" <joh...@ya...> > 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's more or less right. Note that calls out to C-extenstions generally release the interpreter lock, so some multithreading is supported. How much depends on how much you spend in the interpreter versus how much time is spent calling out to extensions. At various times there have been free threading patches for the C-interpreter (by Greg Stein I believe). I don't know what the status of that patch is right now. > 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. That's a big plus for Jython. The way Jython "just works" with java libraries has always amazed me. > 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... This might be true unless you're using Swing, which in my experience is dog slow.... [SNIP] -tim |