develooper Front page | perl.perl5.porters | Postings from March 2006

Re: CLONE for Tie::RefHash

Thread Previous | Thread Next
From:
Yuval Kogman
Date:
March 29, 2006 03:08
Subject:
Re: CLONE for Tie::RefHash
Message ID:
20060329110731.GW30411@woobling.org
On Wed, Mar 29, 2006 at 13:05:49 +0200, demerphq wrote:

> Well i know from experience on other matters that using StrVal for
> indexing reference lookups is massively slower than using refaddr. I
> just whipped up a benchmark and it shows that refaddr is an order of
> magnitude faster than than StrVal. And IMO if you are already dealing
> with a piggish interface (ie a tied hash) then you aught to careful
> about trimming unnecessary fat elsewhere.

Okay, i'm sold...

I'll write a quick patch later today  when I'm back home unless
someone beats me to it.

-- 
  Yuval Kogman <nothingmuch@woobling.org>
http://nothingmuch.woobling.org  0xEBD27418


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About