Re: Getting data from template?
Lyle <[email protected]> Fri, 30 Jan 2009 00:02:00 +0000
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword