Re: [Pyobjc-dev] NSApplicationMain idiom: wish to standardize
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-03-22 06:51:58
|
On Friday, Mar 21, 2003, at 23:07 Europe/Amsterdam, Jack Jansen wrote: > > 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. I'm using Python from CVS. I didn't know about 'sample', it looks like very usefull tool. Thanks for the hint. Ronald |