From: Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxxxxxx> Date: Tue, 10 Feb 2009 20:40:47 +0100 (CET) > Please consider applying the following patch: > > The current jhash.h implements the lookup2() hash function by Bob Jenkins. > However, lookup2() is outdated as Bob wrote a new hash function called > lookup3(). The new hash function > > - mixes better than lookup2(): it passes the check that every input bit > changes every output bit 50% of the time, while lookup2() failed it. > - performs better: compiled with -O2 on Core2 Duo, lookup3() 20-40% faster > than lookup2() depending on the key length. > > The patch replaces the lookup2() implementation of the 'jhash*' > functions with that of lookup3(). > > You can read a longer comparison of the two and other hash functions at > http://burtleburtle.net/bob/hash/doobs.html. > > Signed-off-by: Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxxxxxx> I support this change and I also don't think it makes sense to have a jhash3.h new header file, that's just a waste of time. Either the new stuff is better or it isn't, and that whole "matching hashes" argument is pure garbage. But this kind of change isn't for me to decide, changing jhash impacts the entire tree not just networking, and also I know that Rusty Russell was investigating making this change and he even did his own timings on various platforms. Therefore this needs to be proposed on linux-kernel with appropriate parties CC:'d. Thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html