You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2020/01/09 23:05:00 UTC

[jira] [Created] (ZOOKEEPER-3685) Use JDK Arrays Equals for Jute

David Mollitor created ZOOKEEPER-3685:
-----------------------------------------

             Summary: Use JDK Arrays Equals for Jute
                 Key: ZOOKEEPER-3685
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3685
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: David Mollitor
            Assignee: David Mollitor


ZK Jute compiler uses its own byte Array equality check.  JDK has one which is marked with the {{HotSpotIntrinsicCandidate}} annotation.  This means that the JDK may have a native optimization for the routine.

https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/Arrays.java#L2654



--
This message was sent by Atlassian Jira
(v8.3.4#803005)