Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^6: elsif chain vs. dispatch

by Marshall (Abbot)
on Apr 27, 2009 at 21:54 UTC ( #760446=note: print w/replies, xml ) Need Help??

in reply to Re^5: elsif chain vs. dispatch
in thread elsif chain vs. dispatch

Completely correct! Yes this could happen. If it keeps happening, then the 17th entry would cause the hash to be re-sized. Then again on the 33rd entry.

It sounds like Perl 5.8.3+ has made some improvements! Great!

For Perl versions less than that and even on Perl 5.8.3, I don't think that a user will know more than #buckets, #buckets used and #total entries (ie, user wouldn't know the max entries into a "bucket"), but given those 3 things, a user can make some judgment call about increasing the hash table size and is able to do so.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://760446]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-03-21 11:28 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.