A fast hash function for string in C#

后端 未结 4 1470
后悔当初
后悔当初 2020-12-02 21:03

I want to hash a string of length up-to 30. What will be the best idea to do that if time is my concern. The function will be called over 100 million times. currently I am u

4条回答
  •  隐瞒了意图╮
    2020-12-02 21:28

    I have played with Paul Hsieh's implementations, and seem to be fast with little collisions (for my scenarios anyway)

    • http://www.azillionmonkeys.com/qed/hash.html

提交回复
热议问题