implementation for use with
has a particularly nasty implementation
that allocates a single-element byte array for
In addition to that, it doesn't implement an overload that accepts a
as an argument.
Combined, this means that we can't use
and can't use
because of its atrocious performance
with direct byte buffers (allocating an array and making a JNI call for every byte
checksummed might be considered sub-optimal by some).
Block version of xxHash32 (
), however, does provide
method that is efficient and does exactly
what we need, with a caveat that we can only invoke it once before having to reset.
This, however, is fine for our purposes, given the way we use it in
, followed by one
, followed by