Re: [htmltmpl] Getting data from template?
Brought to you by:
samtregar
From: Lyle <web...@co...> - 2009-01-30 00:02:10
|
Mathew Robertson 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. > I did some performance profiling of H::T some time ago -> it turns out > that there is quite a bit of speed up (somewhere between 10% and 10x, > depending on the page) by re-writing part of the code located around > line 2660. Does this pass all the .t tests? If it does then shouldn't this get accepted into H::T as a patch? Care to supply the change as a diff? Sorry for the shameless blog plug, but I only learnt how to use diff and patch recently and blogged about how to to do:- http://perl.bristolbath.org/blog/lyle/2009/01/how-to-submit-perl-patches.html#more Lyle |