[Zope-Annce] [Ann] CompiledExecutables -- speeding up page delivery after startup

Dieter Maurer dieter at handshake.de
Fri Mar 25 14:09:04 EST 2005

CompiledExecutables defines a set of executable objects that are
precompiled and the compilation stored either in the ZODB or in the
file system. It currently defines CompiledPageTemplate,
FSCompiledPageTemplate and FSCompiledPythonScript (PythonScript is
already compiled; although in a somewhat stupid manner (in
__setstate__ rather than when used)).

Storing the compilation result avoids expensive recompilation. This
can drastically speed up access to the first pages after startup --
especially for large CMF based sites.

The product does not register anything. It is up to you to register
the filesystem based objects with
Products.CMFCore.DirectoryView.registerFileExtension or the ZODB based
objects by calling their initialize function.

The product works by making instance methods and code objects
picklable. This might appear as a security risk. However, unpickling
untrusted pickles is always a security risk (because the pickler
decides what is picklable and not the unpickler).




More information about the Zope-Announce mailing list