[Catalyst] Slow template processing on debian lenny

Matt S Trout dbix-class at trout.me.uk
Sat Sep 27 16:48:39 BST 2008

On Mon, Sep 15, 2008 at 02:17:22PM +0530, Terence Monteiro wrote:
> Hi,
> I've been using TT for years and enjoy the features it provides. In one of
> my Catalyst applications, I'm processing a template which generates HTML to
> give me a table with counts taken from a hash. I'm using a lot of nested
> FOREACH to generate the table.
> 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.

Use Devel::NYTProf to find out what specific piece of code causes the

Currently you're just waving a torch around in a 20 mile wide pitch black
cave - sure, there's illumination involved, but not of anything relevant to
your problem.

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list