When I create a %hash, I always presize it with:
my %hash = (); keys(%hash) = $nnn;Question is, what is the minimum or default number of keys that are allocated by perl? Currently, I usually assign $nnn when I think the hash will grow to more than 30, but if the minimum was higher, I could save some key-strokes and use less instructions.
In reply to Minimum Hash keys allocated? by flexvault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |