performance benefits from byte code files?

Shae Erisson shapr at uab.edu
Sat Jun 17 08:34:18 EDT 2000


Dan Gindikin wrote:
> 
> I was wondering what the performance benefit is from having a .pyc file
> around.
> 
> Here an example that motivates this quiestion. Lets say I have a
> relatively large script.py CGI script. Since it is always executed
> directly, a script.pyc file is never generated. Is it then beneficial
> to write a tiny wrapper that does nothing but
>    import script
>    script.run()
> because then script.pyc does get generated?

Check out this url:
http://www.lyra.org/greg/python/#dev
Greg Stein gives a method of executing *.pyc files directly for CGI.

Personally, I'd like to know if *.pyo files also will work the same way.
-- 
sHae mAtijs eRisson (sHae at wEbwitchEs.coM) gEnius fOr hIre




More information about the Python-list mailing list