Welcome to the Monastery | |
PerlMonks |
Re: A memory efficient hash, trading off speed - does it already exist?by mce (Curate) |
on Feb 04, 2003 at 15:33 UTC ( [id://232549]=note: print w/replies, xml ) | Need Help?? |
Hi, I am not an expert on memory mgmt, but I know there is such a thing as pseudo hashes, which are in fact just arrays, where the first item is a hash that performs the indexing. They are not that flexible as normal hashes, but I think they have a large memory win against normal hashes (although I haven't tested this).
It is worth checking it out, espacially with the fields pragma.
In Section
Seekers of Perl Wisdom
|
|