in reply to Re: Re: Re: Re: Re: print scalar %hash... erm
in thread print scalar %hash... erm
Actually, Perl doesn't have to call the hash function for each key as the full hash value is stored along with the key so Perl just needs to compute the remainder between that value and the new number of buckets.
Another question is whether Perl decides to allocate more buckets based on the number of buckets in use or on the number of keys. I remember being surprised by the answer to this and vaguely remember that the answer has changed. Unfortunately I don't have the time right now to dig this information up.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: print scalar %hash... erm
by larryk (Friar) on May 25, 2001 at 13:37 UTC | |
by tye (Sage) on May 26, 2001 at 00:54 UTC |