[Zope] [Zope-CMF] [CrossPost] Speeding up CMF startus -- delaying ZPT cooking

Dieter Maurer dieter@handshake.de
Wed, 6 Mar 2002 23:50:41 +0100


I updated my "ZPT delay cooking" patch for the PageTemplate product now
part of Zope 2.5. (see <http://www.dieter.handshake.de/pyprojects/zope>).

Applying the patch reduced startup time for a CMF site from about
20 seconds to about 6 seconds:

   Without the patch, the tree display in Zope's management interface
   forces all PageTemplates in the CMF skins to be cooked (e.g.
   parsed and transformed into an internal form). This takes a lot of
   time.

   The patch delays cooking until the template is rendered.

Of the remaining 6 seconds, 4.5 seconds are caused by a similar
cooking for FSPythonScripts. Delaying this cooking as well, will
reduce the time to 1.5 seconds which starts to be acceptable.

For the moment, I can live with the 6 seconds, but as the time increases
linearly with the number of CMF sites, I may soon work on delaying
cooking for PythonScripts as well.


Dieter

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests