in reply to Re^7: elsif chain vs. dispatch
in thread elsif chain vs. dispatch
However in a practical sense, I think that you are going to be hard pressed to come up with a realistic example for this user's input data.
Of course there is a "trick" here. Even if the hash table has to compare say 16 things to get a result, it is still going to be very fast!
This idea that say 256 things will hash into an identical hash table entry is unlikely. Now "very, very seldom" doesn't mean "never".
But, as the hash grows the probability of this decreases exponentially.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: elsif chain vs. dispatch
by ikegami (Patriarch) on Apr 27, 2009 at 23:36 UTC | |
by Marshall (Canon) on Apr 28, 2009 at 00:02 UTC | |
by Your Mother (Archbishop) on Apr 28, 2009 at 00:16 UTC | |
by ikegami (Patriarch) on Apr 28, 2009 at 00:16 UTC | |
|
Re^9: elsif chain vs. dispatch
by JavaFan (Canon) on Apr 28, 2009 at 00:14 UTC | |
by Marshall (Canon) on Apr 28, 2009 at 04:49 UTC |