Using Text::Xslate as an alternative to Template::Toolkit?

David Miller justdave at bugzilla.org
Wed Mar 7 22:14:47 UTC 2012


Byron Jones wrote on 3/6/12 11:29 PM:
> Frédéric Buclin wrote:
>> But someone replied to me privately that there is one possible
>> alternative to TT, which is the Text::Xslate module, available on CPAN:
>>
>> [...]
>>
>> In mod_cgi environment, this module is only 1.5 times faster than TT,
>> based on their benchmarks.
> for bugzilla with mod_cgi those gains will probably be lost by the
> overhead moose/mouse adds.
> 
> for mod_perl, we don't currently cache anything between requests; it may be better to investigate retaining compiled templates across requests, as well as looking into a backend (backed by mod_perl or memcached) for caching generated html fragments between requests.

We do a lot of user-specific stuff...  gotta wonder how much of the
caching is negated by the amount of data we throw at the templates which
changes for every user that looks at it...

-- 
Dave Miller                                   http://www.justdave.net/
System Administrator, Mozilla Corporation      http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/



More information about the developers mailing list