Don't ask to ask, just ask | |
PerlMonks |
Re^4: Hash Search is VERY slowby Tux (Canon) |
on Sep 30, 2021 at 11:54 UTC ( [id://11137134]=note: print w/replies, xml ) | Need Help?? |
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. Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|