Zope and python -O
Hi, I wondered why the default installation of Zope doesn't use the -O option on the python command line in order to produce .pyo objects instead of .pyc ones ? aren't .pyo programs supposed to be "optimized" (and maybe run faster) versus "non-optimized" .pyc ? are .pyo really faster than .pyc ? what are the drawbacks ? please enlighten me. thanks. bye, Jerome ALET - alet@unice.fr - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
On Thu, 10 Feb 2000, Jerome ALET wrote:
I wondered why the default installation of Zope doesn't use the -O option on the python command line in order to produce .pyo objects instead of .pyc ones ?
aren't .pyo programs supposed to be "optimized" (and maybe run faster) versus "non-optimized" .pyc ?
are .pyo really faster than .pyc ?
They are not much faster. May be 1%...
what are the drawbacks ?
Loosing line numbers in tracebacks. Zope (thanks a lot) put full tracback in the standard_html_error. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Jerome ALET -
Oleg Broytmann