On 14 Sep 2000, Joe Schaefer wrote:
 
> 2) Apache::Request is better than your performance numbers indicate.
> 
> The problem I have with your comparison with Apache::args vs Apache::Request vs CGI
> is that your benchmark code isn't fair.  You're comparing method calls against
> hash-table lookups, which is apples and oranges.  To get more representative
> numbers, try the following code instead

>              my $args = $q->param; # hash ref

you mean parms() ?   the Apache::Request::parms hash ref is tied, so
there are still method calls, but less than calling params(), which does
extra stuff to emulate CGI::params.  parms() is going to be
renamed (to something less like params()) and documented as faster than
using the params() wrapper, in the next release.

Reply via email to