[mod_python] Newbie question: do I need to worry about compilation of modules served directly by mod_python

Ling Bao lingbao at swingvine.com
Fri Jul 25 07:54:47 EDT 2008


I'm a newbie to mod_python and the open source community in general.  Here's
what might seem like a stupid question, but please entertain me : )

I'm building a site and serving its pages with mod_python out of a www
directory.  I have a bunch of .py files in the www directory for rendering
the home page, sign in page, etc.  Each of these modules also imports
packages and modules from other directories.

In the other directories containing the imported modules, I see .pyc files.
However, in the www directory where the mod_python handler is picking up the
top-level scripts for handling requests, I don't see any pyc files.  I think
this is expected because python doesn't auto-compile py files unless they're
imported by some other module.

My question is am I suffering any performance impact by letting mod_python
use py top-level scripts under the www directory instead of manually
compiling these scripts and having mod_python run the pyc files instead.  Or
is all this moot because mod_python does auto-reloading and keeps the
scripts under www in memory (unless the py files are modified in which case
a reload occurs)?

Thanks!
Ling
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080725/004fe5b9/attachment.html


More information about the Mod_python mailing list