On Wed, 21 Apr 2010 20:30 +0400, "Oleg Pronin" <syber....@gmail.com>
wrote:
> 
> 1) Getting all params 3x faster than only one
> 2) Getting $req->{parameters}{lang} 150x faster than $req->param('lang')

What a surprise: accessing the hash directly is faster than calling a
function that accesses the hash.  Plus, the docs state that
$req->param() is considered a legacy interface to provide CGI.pm
compatibility, and if you look at the source it's obvious it has to do
extra work to make it work like CGI.pm.  If you don't need that, don't
use it.


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to