[issue14621] Hash function is not randomized properly
Christian Heimes
report at bugs.python.org
Wed Nov 7 02:27:11 CET 2012
Christian Heimes added the comment:
Serhiy's trick
#define U8TO64_LE(p) ((u64)((u32 *)(p))[0] | ((u64)((u32 *)(p))[1] << 32))
gives a nice speedup. Now UCS2 is down to 0.133 usec (12% slower than the current algorithm) and ASCII down to 0.105 usec (3% faster).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14621>
_______________________________________
More information about the Python-bugs-list
mailing list