Message175038
Unsupported provider
Thanks to Snakebit I was able to tests the code on a 32bit BSD installation with GCC 4.2. The ASCII unicode and bytes performance is about 8% slower, UCS2 unicode is about 37% slower. There might be room for improvements, though.
% ./python -m timeit -r20 -n1000000 -s "h = hash; x = 'a' * 10**7" -- "h(x)"
Current:
1000000 loops, best of 20: 0.109 usec per loop
SipHash:
1000000 loops, best of 20: 0.118 usec per loop
% ./python -m timeit -r20 -n1000000 -s "h = hash; x = 'ä' * 10**7" -- "h(x)"
Current:
1000000 loops, best of 20: 0.119 usec per loop
SipHash:
1000000 loops, best of 20: 0.163 usec per loop |
|
Date |
User |
Action |
Args |
2012-11-07 00:52:08 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, arigo, vstinner, benjamin.peterson, Arfrever, alex, dmalcolm, Giovanni.Bajo, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, camara |
2012-11-07 00:52:08 | christian.heimes | set | messageid: <1352249528.03.0.231664250522.issue14621@psf.upfronthosting.co.za> |
2012-11-07 00:52:07 | christian.heimes | link | issue14621 messages |
2012-11-07 00:52:06 | christian.heimes | create | |
|