[Catalyst] uri_for and Chained actions

Matt S Trout dbix-class at trout.me.uk
Thu Oct 11 21:18:22 GMT 2007

On Thu, Oct 11, 2007 at 02:51:31AM +0400, Oleg Pronin wrote:
> If your project is heavy loaded then i think the best way is to write:
> <form action="/myapp/[%object.id%]/update">
> or (easy to change):
> <form action="[%object.update_url%]">
> in Object:
> sub update_url {'/myapp/'.shift->id.'/update}
> because Catalyst.uri_for() still takes to much CPU to call it a hundred
> times per page.

It's a -lot- faster in the latest release. Are you sure this is still the
bottleneck you think it is?

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list