4 ms·
I wonder if some other hash might be faster (e.g. fletcher 16).
by aidenn0 11y ago
I wonder if some other hash might be faster (e.g. fletcher 16).
- dalke 11y agoIf they were going to use a different hash function then they would more likely uses the built-in CRC32 instruction, which computes CRC-32C. That would certainly be faster.
- jorangreef 11y agoFletcher has poor properties as a hash according to SMHasher, if I recall correctly. xxHash is one of the best in terms of speed and quality.
- rurban 11y agoNo, if you have a HW supported crc32 builtin nothing will be faster than this. You can safely skip the PCLMULQDQ optimization, which only works on newer CPU's, but crc32 should be almost everywhere nowadays.