[Catalyst] Removing

J. Shirley jshirley at gmail.com
Tue Feb 10 21:32:08 GMT 2009


On Tue, Feb 10, 2009 at 12:46 PM, Jim Spath <jspath at pangeamedia.com> 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



More information about the Catalyst mailing list