[ZPT] [Patch] Delay cooking

Dieter Maurer dieter@handshake.de
Thu, 16 Aug 2001 19:03:04 +0200 (CEST)


Before a ZPT can be used, it must be cooked. Cooking essentially means
parsing the template and transforming it into an internal object.

The current ZPT implementation performs cooking immediately when the
ZPT is loaded from the ZODB. This may become a problem, as cooking may
take a long time. For example, if you have a folder with lots of ZPT's
and the folder get displays in the left frame of the ZMI for the first
time, then all contained ZPT's are loaded. It can take minutes before
the tree display is finally build.

There is a patch (ZPT - delay cooking) at

  URL:http://www.dieter.handshake.de/pyprojects/zope

that delays cooking until the ZPT is actually used for
something. This speeds up initial operations considerably.


Dieter