![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Comparing memory requirements for hashes and arraysby perrin (Chancellor) |
on Sep 04, 2001 at 03:22 UTC ( #109961=note: print w/replies, xml ) | Need Help?? |
In my experience, hashes use about 15% more memory than arrays for similar data with constants for array indexes. This is not a good enough reason to obscure your program. Use the data structure that makes the most sense for your code and will be the most readable for future maintainers.
In Section
Seekers of Perl Wisdom
|
|