Re: [Pyobjc-dev] NSApplicationMain idiom: wish to standardize
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-03-21 22:07:49
|
On vrijdag, maa 21, 2003, at 17:33 Europe/Amsterdam, Ronald Oussoren wrote: > Speaking of NSApplicationMain... Does anyone care to offer on opinion > on the enormous amount of time between the call to NSApplicationMain > and the call to awakeFromNib in a simple application? That period of > time takes about 4 seconds of the 5 seconds my application needs to > start up (using a savagely butchered version of PyObjC, 'import > AppKit' would use another 2 seconds if I hadn't build a mini module > that exports all definitions I need from AppKit and Foundation). Are you using Python from CVS? Python 2.3a2 still had prebinding enabled, which slowed down dynamic loading terribly (see the thread "Slow loading of modules" around 23-Feb-2003 in pythonmac-sig, for the people who weren't in on this). And if you are using a non-prebinding Python: try using "sample" on python while it is doing it's NSApplicationMain dance. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |