performance benefits from byte code files?

Dan Gindikin dan at netrics.com
Fri Jun 16 14:19:55 EDT 2000


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?

--
Dan


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list