Python 1.52 indeed is 13-30 % faster than Python 2.0
But if your use the Python's optimizer, (python -O yourprogram.py) you gain
back about 10 %.
That said your sgi hardware seems quite obsolete, or else the the compiler you
used to build python is very bad. The same goes for all the once powerful RISC
machines. HP's PA-RISC and Sun's UltraSPARC CPU's are quite lame by todays
standards, more so because the machines are so expensive they are not replaced
every two years or so, like the office PC's often are.
On my Intel Celeron 374MHz running Mandrake 7.1 Linux I get
python 2.0: 6.29s
That's over four times the performance of your sgi box, and still slower than
any new PC that you buy today.
That said, more often than not I find I can restructure my python code so that
performance is no longer an issue. In the rare cases it is, it is pretty
straight forward to go to C or C++ for the critical parts.
Just my idle centimes,
Harri
···
On Mon, 04 Dec 2000, Harald Schaeffler wrote:
I habe no real answer for that - but I have nearly the same problem with
sgi/irix.
unter NT the performace from python/wxpython is fine, on irix with 1.6/2.0
it's weak - i made some test's:
well, I think the problem is with my installation of wxPython. I
originally installed using the RPM and got an error message. Then I did a
forced install, but I'm having one heckuva time finding the wxPython
files/directories anywhere (there is one small wxPython file in my Python
directory, and that's it). So I'm going to try to find the components I can
(they should all be in the Python directory, right?), uninstall, and then
reinstall. If that solves the problem I'll post.
well, I think the problem is with my installation of wxPython. I
originally installed using the RPM and got an error message. Then I did a
forced install, but I'm having one heckuva time finding the wxPython
files/directories anywhere (there is one small wxPython file in my Python
directory, and that's it). So I'm going to try to find the components I
can
(they should all be in the Python directory, right?),
On Unix it goes into the site-packages directory, which is usually someplace
like /usr/local/lib/python2.0/site-packages