Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> they turned out to be slower than join.
Interesting, I think that's because you address the points separately in multi (2 lookups) while join can optimize over an array (one list returned) Maybe try to see how it compares with join over 2 elements. I wouldn't be surprised if the result is equally fast. Multi dimensional hashes are an old (Perl 4) but somehow obscure feature. They probably never optimized it over the equivalence to join.
Cheers Rolf
In reply to Re^3: Fastest way to lookup a point in a set
by LanX
|
|