[Pythonmac-SIG] is mac python slower?

Jason Petrone jpetrone@cnri.reston.va.us
Mon May 19 15:01:02 EDT 2003


On Fri, May 16, 2003 at 04:37:41PM -0700, Michael Toy wrote:
> % time python << EOF
> from wxPython.wx import *
> EOF
> 
> real    0m5.383s
> user    0m2.190s
> sys     0m0.290s
> 
> on a 1GHZ powerbook.
> 
> I was looking at why our app feels much slower, even when comparing 
> fast macs to slow pcs.
> 
> Before I waste hours on this, does anyone know if this really is slower 
> than an equivalent pc,
> and if so, where the fault lies?

I'm also struggling with wxPython import times.  I think the problem
has less to do with python, and more to do with the OS link editor.

I've been able to substantially improve load times by using the dyld
prebind mechanism.  The catch here is that you need to prebind the
python executable, not the wxPython libs!

Statically linking wxPython and the wxWindows libs would probably be the
best solution, but I'm not sure how easy this would be to do.

Jason




More information about the Pythonmac-SIG mailing list