On Wed, Sep 12, 2001 at 08:46:20AM -0400, Hardy Merrill wrote:
> Tim, for a while now you've been saying that you will change
> fetchrow_hashref so that its performance is close to or the
> same as fetchrow_arrayref, but the perldocs still have this
> disclaimer:
>
> Because of the extra work fetchrow_hashref and Perl
> have to perform, it is not as efficient as
> fetchrow_arrayref or fetchrow_array.
>
> Currently, a new hash reference is returned for each
> row. This will change in the future to return the
> same hash ref each time, so don't rely on the current
> behaviour.
>
> I believe the performance gain was to come by NOT creating a
> new hash for each row, but by reusing the same hash. Has this
> been done yet(is the documentation old), or is it on your
> schedule to be done soon?
When time allows or someone pays me to make time. It's certainly fairly
high on the list. But not as high as settling into our new house :)
Tim.
p.s. It'll be done via a new $h->{FetchHashReuse}=1 and it's non-trivial
because the way I intend to do it will make fetchrow_hashref effectively
become an alias for fetchrow_arrayref and thus be _just as fast_.