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)
[EMAIL PROTECTED]
http://www.osafoundation.org

[EMAIL PROTECTED]
http://code-bear.com

PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29

Attachment: PGP.sig
Description: This is a digitally signed message part

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to