[Zope-dev] optimised python

Tino Wildenhain tino at wildenhain.de
Sun Dec 18 07:06:48 EST 2005


Am Sonntag, den 18.12.2005, 17:46 +1100 schrieb Alan Milligan:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I'm reconsidering the way we RPM package byte-code compiled python, and
> although I suspect optimised python is a bit of an anacronysm, I thought
> I'd check with the list ;)
> 
> If one was to start Zope with python -O, then it would look for (and
> generate) .pyo files instead of .pyc's in all the Products right?
> 
> Would there be any performance gain by this change?  How much?
> 
> Is it worth me doing byte-compiles with -O and starting Zope's
> interpreter in this mode?
> 
Debian python installer makes two "compile" steps after installation,
one to create the .pyc and one to create all the .pyo files.
I'd say apart from disk space it does not hurt :) And you are
free to start your python apps in the way you like.




More information about the Zope-Dev mailing list