[Dev] Python startup times

Alec Flett alecf at osafoundation.org
Wed Jul 27 09:45:29 PDT 2005


I think unfortunately this isn't really testing the zipping of python 
files - just executing "pass" does not load any of the libraries from 
the .zip

Starting chandler, headless chandler, or at least timing the hardhat 
tests would probably give different results, and probably something much 
closer to our target..

In fact, if you could start headless chandler, (to load the repository 
code) run go(), (to load the twisted libraries, etc) and then quit, that 
would probably be the easiest way to get chandler-like startup times.

Alec

Mike Taylor wrote:
> After the discussion in IRC about putting the core python libraries 
> into a zip file to speed startup times, I decided to run some tests to 
> see if there was even chance of it making any difference.
>
> What I did was build a python24.zip file that only contained core 
> compiled python files (*.py, *.pyc and *.pyo) and removed the same 
> files from the disk.
>
> I then ran the following basic startup test under our "normal" 
> RunPython environment and under one using the python24.zip
>
> ./release/RunPython -c 'pass'
>
> OS normal python24.zip
> -------------- ------------- -------------
> linux (ubuntu) real 0m0.117s real 0m0.071s
> user 0m0.069s user 0m0.027s
> sys 0m0.010s sys 0m0.008s
>
>
> os x (panther) real 0m0.501s real 0m0.148s
> user 0m0.150s user 0m0.070s
> sys 0m0.040s sys 0m0.030s
>
> disk space (w/o site-packages)
>
> python24.zip 3 meg
> lib/python2.4/ 17 meg
>
> The OS X computer was my powerbook, not exactly a speed demon, and the 
> linux box was a fast server.
>
> ---
> Bear
>
> Build and Release Engineer
> Open Source Applications Foundation (OSAF)
> bear at osafoundation.org
> http://www.osafoundation.org
>
> bear at code-bear.com
> http://code-bear.com
>
> PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29
>
>
> ------------------------------------------------------------------------
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
>   




More information about the Dev mailing list