[wxPython] slow loading in linux -> unix

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:

python 1.52: 19.267s
python 1.6 : 23.866s
python 2.0 : 25.829s

that's the programm:

i=0
while i < 1200000:
  i=i+1
  a=1000*1000
  b=12345.678*1234.7777

with wxpython it's even more, without real time (dont know whow to bench gui)

the performace of gtk, wxwindows is fine - it seem's, that gluing all
together needs to be done very carefull

···

--
Harald Schaeffler
BMW Group
Forschungs- und Ingenieurzentrum
Technologie Montage CA-Technik
TI-410

80788 Muenchen, Germany

Phone +49 89 38243531
Fax +49 89 38247140
Email: Harald.Schaeffler@bmw.de
                                        
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

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:

python 1.52: 19.267s
python 1.6 : 23.866s
python 2.0 : 25.829s

that's the programm:

i=0
while i < 1200000:
  i=i+1
  a=1000*1000
  b=12345.678*1234.7777

with wxpython it's even more, without real time (dont know whow to bench gui)

the performace of gtk, wxwindows is fine - it seem's, that gluing all
together needs to be done very carefull

--
Harald Schaeffler
BMW Group
Forschungs- und Ingenieurzentrum
Technologie Montage CA-Technik
TI-410

80788 Muenchen, Germany

Phone +49 89 38243531
Fax +49 89 38247140
Email: Harald.Schaeffler@bmw.de
                                        
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Is it a shared library problem. ie. Does it take a long time to load the shared libraries.
Does it run faster on subsequent invokations ???

Brendan Simon.

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:

python 1.52: 19.267s
python 1.6 : 23.866s
python 2.0 : 25.829s

that's the programm:

i=0
while i < 1200000:
  i=i+1
  a=1000*1000
  b=12345.678*1234.7777

with wxpython it's even more, without real time (dont know whow to bench gui)

the performace of gtk, wxwindows is fine - it seem's, that gluing all
together needs to be done very carefull

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Is it a shared library problem. ie. Does it take a long time to load
the shared libraries.
Does it run faster on subsequent invokations ???

Or if there is an instance of a wxPython app already loaded and running?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

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.

thanks for the input so far!
-steve

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

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

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users