in reply to Re^2: Hash Search is VERY slow
in thread Hash Search is VERY slow
> $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.
{192.168}{101.208} : 69879492 ... {xC0xA8}{x65xD0} : 69611776
that's a gain of ~0.3% °
I'd call this micro optimization, or did I miss something?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) 0.383% to be more precise, so rather ~0.4%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Hash Search is VERY slow
by Tux (Canon) on Sep 30, 2021 at 11:54 UTC | |
by LanX (Saint) on Sep 30, 2021 at 11:59 UTC | |
by Tux (Canon) on Sep 30, 2021 at 13:07 UTC | |
by LanX (Saint) on Sep 30, 2021 at 14:30 UTC | |
by soonix (Chancellor) on Sep 30, 2021 at 13:02 UTC |