in reply to Re^3: Hash Search is VERY slow
in thread Hash Search is VERY slow
Your suggestion of using {"192.168"}{"101.208"} is indeed almost as small as my pack version, so it shows close to no gain in memory. Both are however 40% smaller than the original {"192.168.101.208"}.
I just included all of those to show the differences in size.
I first thought I'd use Socket::inet_aton, but that of course does not support the {A.B}{C.D} split.
The win in using pack over plain is not the .3% gain in memory size, but the ease of sorting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Hash Search is VERY slow
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 |