[Zope] Re: Speeding up Zope startup

Thomas B. Passin tpassin@mitretek.org
Fri, 26 Jul 2002 11:58:08 -0400


[Christopher Quinn]

No experience to speak of, but just having read the python tutorial, I
see mention of its ability to write out .pyc files alongside the .py,
and this compiled bytecode form yields faster startup times. If zope was
installed for multi-users, the ownership probably does not allow for
such files to be written, although this does not trouble python.
So perhaps arranging for all .py files in the zope installation to be
pre-compiled?

[Tom P]
It is not that.  Python creates the .pyc files when they are non-existent or
out of date, so after the first time Zope is run, the .pyc files will be
exist.  There was a thread awhile ago about this, and as I recall, people
with very large database files - data.fs - had very slow startup times.  So
clean up and pack your database.

Search the archives to see if you can find that thread.

Cheers,

Tom P