[Catalyst] Performance

Bill Moseley moseley at hank.org
Fri Mar 9 17:19:56 GMT 2007


On Fri, Mar 09, 2007 at 07:52:56AM +0000, Carl Franks wrote:
> This has been really bugging me, but I haven't had the time to look
> into it further.
> 
> A URI object is a blessed string.
> A blessed uri-escaped string!
> So any method that changes a uri, or extracts info from it must be
> having to parse the string each time. And I'm sure there must be a lot
> unescaping/escaping going on.
> 
> The only thing that's optimised for is printing!

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.

-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list