Re: Getting data from template?

Michael Peters <[email protected]> Thu, 29 Jan 2009 16:24:21 -0500
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Lyle wrote:

> Is there a version that works with HTML::Template::Pro? I'm using a 
> template system that loads HTML::Template::Pro if available (for the 
> speed enhancements)

Really? Did you do benchmarks and find that your templating was bottleneck? And if so, how much of a 
gain did you get from HTML::Template::Pro? If page takes 1 sec to create on the server and your 
templating takes only 10% of your execution time (and I've never had a real page where that was the 
case, it's usually closer to 2-5%) and you increase the speed of your templating by 25x (that's the 
max claimed by H::T::P) then you've taken a full 0.096 sec off.

That little gain is just not worth it to me if you have to jump through hoops to make other things 
with with the module (like you're trying to do with H::T::Sec). Plus it doesn't support query() 
which I find extremely handy.

-- 
Michael Peters
Plus Three, LP


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword