What is the best 32bit hash function for short strings (tag names)?

前端 未结 8 1451
傲寒
傲寒 2020-12-12 16:43

What is the best 32bit hash function for relatively short strings?

Strings are tag names that consist of English letters, numbers, spaces and some additional charact

8条回答
  •  借酒劲吻你
    2020-12-12 16:46

    You might check out murmurhash2. It is fast, also for small strings, and has a good mixing final step so it is even good mixed for very small strings.

提交回复
热议问题