Closed ktprime closed 2 years ago
I use 3 bytes to store the distance from the original bucket, 1 byte for the fingerprint, and 4 bytes for the index into the vector. There's no place left any more
I use 3 bytes to store the distance from the original bucket, 1 byte for the fingerprint, and 4 bytes for the index into the vector. There's no place left any more
if the map size is less than 1 << 24 , no need 3 bytes. just statisfy distance bit+ fingerprint bit= 32 bit.
**
** why not use the main (32-3) bits as hash code in dist_and_fingerprint which can reduces collision rate(improving find hit) I do it in my emhash8.