From: Jim Spath <jspath@fo...> - 2006-06-27 18:51:12
> Lastly, if you absolutely gotta have more speed, you could try
> HTML::Template::JIT. It's got some drawbacks - not all of
> HTML::Template's syntax is supported and compilation times are long -
> but it is reliably 4 to 8 times faster.
You also might look into HTML::Template::Pro. Its latest version is
current with HTML::Template version 2.8.
The author gives this description of the speed benefits:
HTML::Template::Pro loads, parse and outputs template on fly, when you
call $tmpl->output(), in one pass. The corresponding code is written in
C and glued to Perl using Perl+XS. As a result, comparing to
HTML::Template in ordinary calls, it runs 10-25 times faster. Comparing
to HTML::Template with all caching enabled under mod_perl, it still 1-3
times faster. At that HTML::Template caching requires considerable
amount of memory (per process, shareable, or on disk) to be permanently
filled with parsed trees, whereas HTML::Template::Pro don't consumes
memory for caches and use mmap() for reading templates on disk.