I'd just like to point out that the worse your hash algorithm is, the better Cuckoo Hashing compares to traditional hashing...... therefore, <i>study your hash functions</i>!<p>The ones that come with most languages or libraries by default quite simply aren't optimized for use on anything. There's hash functions that work better on strings and hash functions that work better on numbers (length bias). In the perfect world, this wouldn't be true, but in the real world, yes it is.<p>That said, may I recommend MurmurHash3: code.google.com/p/smhasher/wiki/MurmurHash3<p>Switch your hash tables to this. The performance difference is incredible.