in reply to A memory efficient hash, trading off speed - does it already exist?
perl -MDevel::Size -wle 'print Devel::Size::size ({})' 100
That's 100 bytes for a reference to an empty hash. And the reference isn't taking the majority of the memory!
If you want to save on your memory usage, you are way better off cutting down on your 120k hashes.
Abigail
|
---|