baotonglu / dash

Scalable Hashing on Persistent Memory
MIT License
187 stars 26 forks source link

How dose key map to key_hash? #11

Closed FrankLin1999 closed 1 year ago

FrankLin1999 commented 2 years ago

code such as:key_hash = h(curr_key->key, curr_key->length); So how the function h works?I can't find any definition of it.I'll be very appreciated if u can answer my question!

FrankLin

baotonglu commented 2 years ago

https://github.com/baotonglu/dash/blob/824b94ca299c786aa07d3450a712646bc7d236aa/util/hash.h#L59