more useful options | |
PerlMonks |
Re: tuning hash memory usageby tedv (Pilgrim) |
on Nov 21, 2000 at 00:44 UTC ( [id://42584]=note: print w/replies, xml ) | Need Help?? |
Although it's not clear to me from the problem description,
often times you don't need the full data structure
throughout the algorithm. If possible, try doing your
work as soon as you put an entry into the hash and then
delete the entry when you're done. The total data size
might be 5000, but if you only have 200 entries in your hash
at any given time, that's much more acceptable. -Ted
In Section
Seekers of Perl Wisdom
|
|