[Zope] Re: Speeding up Zope startup
Sun, 28 Jul 2002 15:21:40 +0100
Thomas B. Passin wrote:
> [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
> [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.
> Tom P
What I meant to suggest is that zope could be installed centrally,
independent of instances, and when run under another user id is without
the necessary permissions to write those .pyc's to the installation area.
Hence suffering the penalty of re-compilation at each and every start up.
This seems a reasonable possibility to me.