Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Minimum Hash keys allocated?by halfcountplus (Hermit) |
on Sep 26, 2010 at 18:50 UTC ( [id://862110]=note: print w/replies, xml ) | Need Help?? |
In fact, pre-allocating can save some headaches if you know the data structure is going to be a very large one, qv: mem usagePay close attention to what ikegami says in this part: Re^4: mem usageAs this sort of hack made a very real difference -- it is not simply a matter of setting the number of slots.
In Section
Seekers of Perl Wisdom
|
|