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

Re: CLONE for Tie::RefHash

Thread Previous | Thread Next
Yuval Kogman
March 29, 2006 03:08
Re: CLONE for Tie::RefHash
Message ID:
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 <>  0xEBD27418

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About