Unsafe: efficiently comparing two byte arrays
Andrew Haley
aph at redhat.com
Thu Mar 13 12:19:36 UTC 2014
On 03/13/2014 11:57 AM, Paul Sandoz wrote:
> Now i am in two minds to whether to add ByteBuffer.compareUnsigned or add Arrays.compareUnsigned.
>
> An explosion of methods on Arrays for all types (plus to/from versions) would be annoying.
Surely it's a no brainer? All we have to do is add the intrinsics for
ByteBuffers, then we get fast ByteBuffers and fast array comparisons too.
I don't see the problem.
Andrew.
More information about the core-libs-dev
mailing list