I have tested HTML::Template::Compiled and I found it as the fastest templating system.
It is much much faster than Template-Toolkit, much faster than HTML::Template, and faster than HTML::Template::JIT. I have made the tests under Windows 2000. I didn't use the Benchmark module for making this test, but I have made something like this: my $begin = time(); use HTML::Template::Compiled; for (1 .. 15000) { #Here define the variables hashref, and get the result of the template ($template->output) but without printing it. } my $end = time() - $begin; print $end; Well, the module HTML::Template::Compiled was faster than HTML::Template::JIT, even though the last one uses Inline::C for compiling the result. HTML::Template::Compiled also has some added features that HTML::Template and HTML::Template::JIT don't have. Unfortunately, HTML::Template::Compiled is not very well finished, so it doesn't give very helpful errors telling about the names of the uninitialized variables, so it is pretty hard to repair the templates. It compiles the templates as perl code, creating modules, and those modules are kept in memory when used with mod_perl, so they are very fast in that case. Teddy ----- Original Message ----- From: "Foo Ji-Haw" <[EMAIL PROTECTED]> To: "Perrin Harkins" <[EMAIL PROTECTED]>; "Praveen Ray" <[EMAIL PROTECTED]> Cc: <modperl@perl.apache.org> Sent: Wednesday, September 07, 2005 12:10 PM Subject: Re: a faster html::template? > I would think that HTML::Template is faster, for the simple argument that it > does not need to parse the XSLT and XHTML, though the library may be > C-compiled. > > ----- Original Message ----- > From: "Perrin Harkins" <[EMAIL PROTECTED]> > To: "Praveen Ray" <[EMAIL PROTECTED]> > Cc: <modperl@perl.apache.org> > Sent: Tuesday, September 06, 2005 11:37 PM > Subject: Re: a faster html::template? > > > > On Mon, 2005-09-05 at 06:42 -0700, Praveen Ray wrote: > > > XSLT transforms are VERY fast > > > > Compared to what? Certainly not compared to HTML::Template. > > > > - Perrin >