JDK-8205194 : Improve the Array Comparison when there is mismatch at first element.
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-06-18
  • Updated: 2018-07-06
  • Resolved: 2018-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Description
Call to vectorizedMismatch and intrinsic usage seems costly when there is a mismatch at the first element itself. This work solves the problem by performing the first element comparison before the call to vectorizedMismatch method and eventually the intrinsic.
Comments
Updated webrev: http://cr.openjdk.java.net/~vdeshpande/vectorizedMismatch_jdk/webrev.04/ Planning to push the same.
22-06-2018

Updated webrev: http://cr.openjdk.java.net/~vdeshpande/vectorizedMismatch_jdk/webrev.03/
21-06-2018

Updated webrev: http://cr.openjdk.java.net/~vdeshpande/vectorizedMismatch_jdk/webrev.02/
20-06-2018

Updated webrev: http://cr.openjdk.java.net/~vdeshpande/vectorizedMismatch_jdk/webrev.01/
20-06-2018

webrev: http://cr.openjdk.java.net/~vdeshpande/vectorizedMismatch_jdk/webrev.00
18-06-2018