[Catalyst] Performance

Andy Grundman andy at hybridized.org
Fri Mar 9 18:01:38 GMT 2007


On Mar 9, 2007, at 12:41 PM, Bill Moseley wrote:

> On Fri, Mar 09, 2007 at 11:34:14AM -0600, Dave Rolsky wrote:
>> On Fri, 9 Mar 2007, Bill Moseley wrote:
>>
>>> I just checked and on some pages I'm calling uri_for a few hundred
>>> times.  If that's a bottle neck then optimization would be most
>>> welcome.
>>
>> I did some hack-y testing of a (bad) memo-ized version:
>
> Would Memoize work in this case?
>
> The problem isn't calling uri_for with the same arguments over and
> over, but with slightly different ones where it still has to parse the
> uri string for each one.

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.



More information about the Catalyst mailing list