11 Oct
2001
11 Oct
'01
1:28 a.m.
Richard Jones wrote:
I'd like to run python in its optimised mode (to try to squeeze that extra 1-5% of performance out of it ;). The only real barrier to doing this is that install_product doesn't check for __init__.pyo (just .py and .pyc).
Would there be serious problems if it was modified to detect the .pyo as well?
See http://www.python.org/doc/current/tut/node8.html#SECTION00812000000000000000... It explains that the only performance advantage is a slight increase in loading speed, not at runtime. Also, Python should use your .pyo file even if __init__.py exists. It's probably not worth it, tho. Cheers, Evan @ Zope