Fastest hash for non-cryptographic uses?

后端 未结 13 1120
挽巷
挽巷 2020-12-04 08:23

I\'m essentially preparing phrases to be put into the database, they may be malformed so I want to store a short hash of them instead (I will be simply comparing if they exi

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 08:42

    Adler32 performs best on my machine. And md5() turned out faster than crc32().

提交回复
热议问题