[Dev] Python startup times
Phillip J. Eby
pje at telecommunity.com
Wed Jul 27 10:31:47 PDT 2005
At 01:15 PM 7/27/2005 -0400, Mike Taylor wrote:
>Actually it did load quite a few of libraries - I was adding them to
>the zip one dir at a time and until I zipped the majority of the
>directories I was getting one import error after another.
>The load time of Chandler wasn't the point of the test - the Chandler
>python files are not part of the zip, only the python core library. My
>primary goal for the test was to see if we could speed up the loading
>of the core python modules.
>What will increase the load time of Chandler is another change I'll be
>making to the build - the pre-compiling of all .py files on each
I think you mean *decrease* the load time. ;)
In any case, the timings you gave are for the case where hardly anything is
imported; I suspect that loading Chandler will show more of a speedup from
the zipping just because more stdlib modules will have been imported.
I suspect that for the debug build we may want to leave the stdlib
unzipped, however, so that people using debuggers can step into stdlib
source code -- something that can't generally be done with zipped Python
code at the moment.
More information about the Dev