David Mollitor created AVRO-4045:
------------------------------------
Summary: Use JDK to Compare Byte Array Lexicographically
Key: AVRO-4045
URL: https://issues.apache.org/jira/browse/AVRO-4045
Project: Apache Avro
Issue Type: Improvement
Components: java
Affects Versions: 1.11.3
Reporter: David Mollitor
Assignee: David Mollitor
The JDK introduced a new compare function for byte arrays in JDK9.
Leverage this vectorized and "IntrinsicCandidate" (via ArraysSupport.java)
implementation for Avro.
[https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Arrays.html#compare(byte%5B%5D,int,int,byte%5B%5D,int,int)]
https://github.com/openjdk/jdk17/blob/4afbcaf55383ec2f5da53282a1547bac3d099e9d/src/java.base/share/classes/java/util/Arrays.java#L5804
--
This message was sent by Atlassian Jira
(v8.20.10#820010)