[Templates] Performance and caching

Perrin Harkins perrin@elem.com
Thu, 18 May 2006 10:30:58 -0400


Nigel Metheringham wrote:
> However the TT documentation implies to me that setting COMPILE_DIR is
> only of use when a process is restarted - so a long lived FastCGI or
> mod_perl process would gain little benefit (and potentially take a hit
> if it stats the cached files).

But these processes do die and new ones are created on a fairly regular 
basis in most apps.  Skipping all of the template compiling in a newly 
spawned process might make a big difference until it has them all cached.

- Perrin