Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: When does Perl double the number of buckets in hash?

by ikegami (Pope)
on Dec 01, 2011 at 00:49 UTC ( #940981=note: print w/replies, xml ) Need Help??

in reply to When does Perl double the number of buckets in hash?

There's no reason to split after inserting into an empty bucket. A split only happens if 1) there's a collision (counter is true) and 2) the number of elements (including the newly inserted element) is greater than the number of buckets (xhv->xhv_keys > (IV)xhv->xhv_max> is true).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940981]
[1nickt]: yes.
[1nickt]: one of the largest distros
[Corion]: I wait for the day when DateTime uses Moose ;)
[TCLion]: finaly finished the install wow that was over 10 min
[1nickt]: Corion using Moose will hardly reduce the number of dependencies or time to install DT !

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-03-23 15:27 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (289 votes). Check out past polls.