[Catalyst] Slow template processing on debian lenny

Wade.Stuart at fallon.com Wade.Stuart at fallon.com
Mon Sep 15 17:08:06 BST 2008

Terence Monteiro <terence at deeproot.co.in> wrote on 09/15/2008 10:23:50 AM:

> Jose Luis Martinez wrote:
> > Terence Monteiro escribió:
> >> On my machine, an ubuntu hardy, it works fast - about 2.5 seconds to
> >> process the template. On a production server using debian lenny, it
> >> used to
> >> take around the same amount of time. But recently, I upgraded it to
> >> libperl
> >> 5.10 and updated the different Perl modules including Template and
> >> Catalyst::View::TT. After this upgrade, the same template takes 25
> >> seconds
> >> on average to process. The times I am mentioning are the times taken
> >> on the
> >> server side, as shown by the Catalyst application debug logs.
> >
> > Maybe Template Toolkit is packaged without the XS module enabled?
> >
> > http://search.cpan.org/~abw/Template-Toolkit-2.20
> When I run
>   perl -MTemplate::Stash::XS -e 'print "No problem\n"'
> it tells me that Template::Stash::XS is present.
> I dumped c.session, c.config and c.stash into a YAML file, read it using
> script and used the data to process my template. It took just 0.62
> which is way faster than when C::V::TT processes it. I actually did some
> tests to verify whether it is a TT problem, but it does not occur when I
> use the Template module directly. The log information and test results
> strange, and I still cannot point my finger on a specific Perl module.
> Could it be a libperl issue? My libperl5.10 version is 5.10.0-13 from
> debian lenny.


perl -V  I bet you see !5.10.  XS is not binary compatible a lot of the
time with different perl versions,  it is best to update perl to 5.10 too
and then reinstall XS modules.


More information about the Catalyst mailing list