4 ms·
The timings for hash() are meaningless, since Python's str object caches the hash after the first call [1]. FNV is one of the fastest hash functions, it should
by ot 14y ago
The timings for hash() are meaningless, since Python's str object caches the hash after the first call [1]. FNV is one of the fastest hash functions, it should be at least suspicious that hash() is 500 times faster than FNV.
[1] http://hg.python.org/releasing/2.7.3/file/7bb96963d067/Objects/stringobject.c#l1266 http://hg.python.org/releasing/2.7.3/file/7bb96963d067/Objec...