Re: [Pyobjc-dev] Autopsy of a ktrace
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-01-19 22:21:02
|
Replying to two messages at once: On zondag, jan 19, 2003, at 15:40 Europe/Amsterdam, Ronald Oussoren wrote: > Another obvious conclusing is that the startup of python itself is > taking over half a second, which means we can never get as fast as > Objective-C w.r.t. startup times (heck, a Objective-C version of > addressbook.py runs in less time than Python takes to get to reading > addressbook.py, I'll add the Objective-C version to the repository). Is this with a static Python or a framework python? I still haven't gotten around at looking at prebinding, so I don't think any is done. Also, it may be possible to prebind extension modules (haven't checked) which may also make a difference. If this is all possible it should be fairly simple: one prebinding magic incantation in the main Python Makefile and explaining distutils how to prebind dynamic modules for the Python that was used to run the distutils. And Bill wrote: > I used Sampler to monitor file operations and it appears to be that > +bundleForClass: calls stat() and access() for each class -- likely > for each Bundle -- to find the bundle for the class. 1. What is Sampler? 2. Could we globally override +bundleForClass: with a category or somesuch and put a cache in there? -- - 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 - |