Re: [Pyobjc-dev] PyObjc speed
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2003-07-08 15:41:05
|
The problem is a result of the lack of a library with which to embed the Python 2.2. interpreter on OS X 10.2. If you build and install the framework version of Python 2.3b1 and use an embedded interpreter, the launch times drop significantly. Launching a PyObjC app will always be a bit slower because of the additional pieces that must be initialized, but not 3x slower! b.bum On Tuesday, July 8, 2003, at 10:40 AM, David Bishop wrote: > [sorry, forgot to mention that I'm not signed up to the list, so > please cc: me > on any replies] > > After seeing the announcement for PyObjc on the cocoa-dev list, I > decided to > download and try it out. Unfortunetly, I think (hope!) I'm doing > something > wrong. I have a 300Mhz iBook with 284 Megs of ram. It isn't a speed > demon, > but Jaguar runs fine on it. However, when using a brand-new > Python/Cocoa > project (the template), it takes *20* seconds to startup. In > comparasion PB > takes about 5. If I run the program, then kill it and immediately > launch it > again, it drops to 18 seconds. Either one is way too long to be > usable. Any > ideas of what I should try? Some sort of pre-compile? Use MacPython > rather > than the built-in 2.2? I can appreciate that it will not be as fast as > ObjC/Cocoa app, but... > > Many thanks! > > -- > "Sorry about the whole 'bomb' thing" - Bruce Rollins > D.A.Bishop > > > <mime-attachment> |