I have a hundred of <img src="...."> and a hundred of <a href=".."> per page
on 1-2mln hosts/day project.

If your project is not under subfolder of some domain then there is no need
to call
<img src="[%c.uri_for('/images/img.jpg')%]"/>
instead of <img src="/images/img.jpg"/>
as they are both pointing to the same place.

2007/10/12, Matt S Trout <[EMAIL PROTECTED]>:

> 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/
>
> _______________________________________________
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[EMAIL PROTECTED]/
> Dev site: http://dev.catalyst.perl.org/
>
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to