3 ms·
Swiss tables are part of Abseil and Abseil provides its own hashing library. I haven't looked into the details of the implementation, but by default it's not us
by ziml77 5y ago
Swiss tables are part of Abseil and Abseil provides its own hashing library. I haven't looked into the details of the implementation, but by default it's not using the identity function for ints. These are the first few hashes it generates for int inputs:
0: 918782482972292171
1: 12294850989704472498
2: 5224175424757160222
3: 16600243932558888071
4: 9529568361303343081
5: 2458892796473463123
6: 13834961304296162488
7: 6764285737197172256
8: 18140354246076836247
9: 11069678680190000369
10: 3999003117507595883