P is for Practical | |
PerlMonks |
Re^3: Hash Search is VERY slowby LanX (Saint) |
on Sep 30, 2021 at 11:19 UTC ( [id://11137133]=note: print w/replies, xml ) | Need Help?? |
> $ip4{pack "CC", $i0, $i1}{pack "CC", $i2, $i3} proves to be the most memory-friendly approach This might be true for long keys, but the original strings of the keys are only stored once.
that's a gain of ~0.3% ° I'd call this micro optimization, or did I miss something?
Cheers Rolf °) 0.383% to be more precise, so rather ~0.4%
In Section
Seekers of Perl Wisdom
|
|