Open Krakean opened 5 years ago
Please note that this hash is header hash: it is maximum 16 bytes, but 6 bytes most of the time. I guess virtual (interface/Func<>) call takes more time than calculating this hash.
If you thinking about block/content hash it is not implemented yet at all (not written/ignored on read) but I'll think about making them pluggable somehow.
@MiloszKrajewski no progress on this? :-\
@MiloszKrajewski Hello. Can you provide here:
var HC = (byte) (XXH32.DigestOf(_buffer16, 0, _index16) >> 8);
and here:
var actualHC = (byte) (Farmhash.Sharp.Farmhash.Hash32(_buffer16, _index16) >> 8);
Ability to use other hash function via some kind of interface, or something like this? For those, who want to use something else than xxhash. Specifically I would like to use Farmhash here which is faster than xxhash (depends on payload, though).