[Templates] Template Toolkit Performance in Mod Perl

Daniel Williams danielw@staff.iinet.net.au
Thu, 27 Jul 2006 22:16:07 +0800


Thanks for the reply.

> 1) Make sure you are not creating a new $tt object for every call, =20
> make it a global in your mod_perl handler. This has a massive =20
> improvement in speed.

I was creating a new object for each call, after changing it I only saw
marginal increases in performance.

I think, after a bit more study, its because the size of my templates
are the problem.

> 2) Ensure that you are using the C stash, rather than the perl one =20
> (this is an option during install).

After some checking sarge debian perl library install uses XS/C stash
which is what I'm using.

My templates create very large html pages, to be a bit more specific I'm
really interested in 'process' method performance gains.=20


Daniel