Original post

I talk about paper https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction. I’m playing with it and try to check how distribution data of this method differs from regular module and my code shows weird results https://github.com/c1rno/fast-sharding, result looks more better if I use length https://github.com/c1rno/fast-sharding/blob/master/sharding_test.go#L9 more than 10000.

Can someone explain me, where is I wrong.

submitted by /u/c1rno123
[link] [comments]