2 ms·
Can you explain how, in any possible universe, using strlen as a hash function and choosing function named to bin on length in any way helps PHP, at all?
by MichaelGG 13y ago
Can you explain how, in any possible universe, using strlen as a hash function and choosing function named to bin on length in any way helps PHP, at all?
- GhotiFish 13y agowell I can think of a reason you might do that. It's dead simple, and you can easily predict the distribution, so you can choose names that have a relatively good distribution. Sure your first few buckets go empty, but at that point, you're overthinking it, NEXT SECTION!