yahoo / mdbm

MDBM a very fast memory-mapped key/value store.
BSD 3-Clause "New" or "Revised" License
993 stars 111 forks source link

Try HW assisted crc32c on amd64/arm7 #27

Open rurban opened 9 years ago

rurban commented 9 years ago

It's the fastest hash, and it's pretty good. Every intel 64 bit CPU should have it, and the new arm's also. See https://github.com/rurban/smhasher#smhasher You just need to probe for it. Best try the one in -lz at first, and if it's the HW assisted one, not the SW, use that. Otherwise the one at https://github.com/rurban/smhasher/blob/master/crc32_hw.c