[Catalyst] Performance

Jonathan Rockway jon at jrock.us
Sat Mar 10 01:57:44 GMT 2007


On Friday 09 March 2007 12:51, Dave Rolsky wrote:
> On Fri, 9 Mar 2007, Andy Grundman wrote:
> > We've been discussing this a bit in #catalyst-dev.  I think Memoize would
> > work, but it needs to be done carefully so it works with all our
> > different varieties of calling uri_for, and also with multiple Catalyst
> > apps running under the same mod_perl instance, for example.
>
> It might be safer and simpler to not use Memoize, and store the
> memoizations in the Catalyst object passed into the method. That'd avoid
> the multi-app problem. Another potential problem using Memoize is that you
> could have more or less unlimited memory bloat over time. By storing this
> in the object, you ensure that the cache is cleaned regularly.

Memoize on CPAN does LRU cache expiration.  If we do decide to cache, we can 
easily steal the relevant code :) 

Regards,
Jonathan Rockway

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070309/9032bbe1/attachment-0001.pgp


More information about the Catalyst mailing list