[Templates] Template Toolkit Performance in Mod Perl
Leo Lapworth
leo@cuckoo.org
Thu, 27 Jul 2006 08:34:26 +0100
On 27 Jul 2006, at 01:49, Daniel Williams wrote:
> I am using Template caching, and that improved performance
> significantly
> however in relatively complex code Template Toolkit is the slowest
> component.
>
> Any other performance tips that don't make it harder (or too much
> harder) for users to write templates would be great.
Just incase you are not already:
1) Make sure you are not creating a new $tt object for every call,
make it a global in your mod_perl handler. This has a massive
improvement in speed.
2) Ensure that you are using the C stash, rather than the perl one
(this is an option during install).
Leo