[Catalyst] Removing
Jonathan Rockway
jon at jrock.us
Tue Feb 10 23:28:32 GMT 2009
* On Tue, Feb 10 2009, Jim Spath wrote:
> Will removing the plugin and calls to localize provide an appreciable
> performance boost? We do call the method alot in our templates.
Maybe. It is impossible to know without measuring it.
Try running your app with Devel::NYTProf [1] and seeing what's slow. If
localize isn't slow, removing it isn't going to speed up your app.
[1] http://search.cpan.org/~timb/Devel-NYTProf-2.07/lib/Devel/NYTProf.pm
The basic idea is:
$ perl -d:NYTProf script/yourapp.pl
$ ab -n 10000 http://localhost:3000/path/to/slow/page
$ GET http://localhost:3000/quit [2]
$ nytprofhtml
< read profile in your web browser>
[2] sub quit :Global { exit(0) }, so that NYTProf can exit cleanly
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
More information about the Catalyst
mailing list