[Catalyst] Alternatives to Catalyst ?

Dermot paikkos at googlemail.com
Mon Apr 26 09:36:33 GMT 2010


On 21 April 2010 18:01, J. Shirley <jshirley at gmail.com> wrote:

>
> __END__
> Benchmark: running all, low, sep for at least 1 CPU seconds...
>       all:  1 wallclock secs ( 1.11 usr +  0.00 sys =  1.11 CPU) @
> 2917341.44/s (n=3238249)
>       low:  0 wallclock secs ( 1.27 usr +  0.04 sys =  1.31 CPU) @
> 12930179.39/s (n=16938535)
>       sep:  1 wallclock secs ( 1.21 usr +  0.01 sys =  1.22 CPU) @
> 3223081.15/s (n=3932159)
>
> Subroutines suck, lets all use hashrefs.


Now that it's quietened down, I can ask a question. Does this I mean
it's preferable to use

$c->req->{parameters}->{foo}

rather than

$c->req->param('foo')

Obviously I'd rather use the faster method but if I'm breaking the
encapsulation in some ways that's going to bite me later, I'd steer
clear.
Dp.



More information about the Catalyst mailing list