David Mollitor created AVRO-4049: ------------------------------------ Summary: Use JDK Equals in UTF8 Key: AVRO-4049 URL: https://issues.apache.org/jira/browse/AVRO-4049 Project: Apache Avro Issue Type: Improvement Components: java Affects Versions: 1.13.0 Reporter: David Mollitor Assignee: David Mollitor
Starting in JDK9, the JDK provides a vectorized ways to test if two specified arrays of bytes, over the specified ranges, are _equal_ to one another. This uses some nice vectorization and in-line methods under the covers. [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Arrays.html#equals(byte%5B%5D,int,int,byte%5B%5D,int,int)] Use this when determining if two UTF8 Strings are equal. -- This message was sent by Atlassian Jira (v8.20.10#820010)