[Zope] Zope and python -O
Oleg Broytmann
phd@phd.russ.ru
Thu, 10 Feb 2000 11:51:34 +0000 (GMT)
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.