Message326219
> In the absence of a real analysis, the intuition is simply that "t ^= t << 7" will clear masses of leading sign bits when hashing "small" negative integers.
That's a clever solution. If you want to go that route, I would rather suggest t ^= t << 1 which is essentially the same fix but which has probably less collisions on the low-order bits. |
|
Date |
User |
Action |
Args |
2018-09-24 10:39:51 | jdemeyer | set | recipients:
+ jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd |
2018-09-24 10:39:51 | jdemeyer | set | messageid: <1537785591.61.0.956365154283.issue34751@psf.upfronthosting.co.za> |
2018-09-24 10:39:51 | jdemeyer | link | issue34751 messages |
2018-09-24 10:39:51 | jdemeyer | create | |
|