|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
RemovingWe are considering removing Catalyst::Plugin::I18N from one of our sites
because we aren't going to localize it and we think it could provide a small performance boost. If we do remove the plugin, we'd lose Locale::Maketext's quant method which we still require for proper pluralization of words. I was wondering what your opinions are about the following questions: Will removing the plugin and calls to localize provide an appreciable performance boost? We do call the method alot in our templates. Should we keep the plugin, but only use it for quant functionality? Or should we write a Template/Catalyst plugin for quant? Or should we write our own code to replace quant? Thanks, Jim _______________________________________________ List: Catalyst@... Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@.../ Dev site: http://dev.catalyst.perl.org/ |
|
|
Re: RemovingOn Tue, Feb 10, 2009 at 12:46 PM, Jim Spath <jspath@...> wrote:
> We are considering removing Catalyst::Plugin::I18N from one of our sites > because we aren't going to localize it and we think it could provide a small > performance boost. > > If we do remove the plugin, we'd lose Locale::Maketext's quant method which > we still require for proper pluralization of words. > > I was wondering what your opinions are about the following questions: > > Will removing the plugin and calls to localize provide an appreciable > performance boost? We do call the method alot in our templates. > > Should we keep the plugin, but only use it for quant functionality? > Or should we write a Template/Catalyst plugin for quant? > Or should we write our own code to replace quant? > > Thanks, > Jim > If all you want is quant methods, you can use TT plugins for that (which have the added benefit of being cached into .ttc files, etc) My favorite for this is http://search.cpan.org/~andrewf/Template-Plugin-Lingua-EN-Inflect-0.02/lib/Template/Plugin/Lingua/EN/Inflect.pm -J _______________________________________________ List: Catalyst@... Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@.../ Dev site: http://dev.catalyst.perl.org/ |
|
|
Re: Removing* 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 $,=$" _______________________________________________ List: Catalyst@... Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@.../ Dev site: http://dev.catalyst.perl.org/ |
| Free embeddable forum powered by Nabble | Forum Help |