[8u] RFR: 8268427: Improve AlgorithmConstraints:checkAlgorithm performance
Alexey Bakhtin
alexey at azul.com
Wed Feb 16 06:55:16 UTC 2022
Hello all,
Could you please review a backport of AlgorithmConstraints:checkAlgorithm performance enhancement to JDK8u
JBS: https://bugs.openjdk.java.net/browse/JDK-8268427
Webrev: https://cr.openjdk.java.net/~abakhtin/8268427/webrev.v0/
11u patch: https://github.com/openjdk/jdk11u-dev/commit/4e324294d2940aa7ebaf51723fd4bc5178442b15
11u patch applies clean except of the following:
1) JDK8u does not have JDK-8215281: "Use String.isEmpty() when applicable in java.base” [1] enhancement, so the AbstractAlgorithmConstraints.java is not applied clean. Trivial merge around "algorithm.length() == 0” line of code.
2) Original code contains micro-benchmark which is not supported by JDK8. Benchmark is converted to the manual test
JDK8u results before patch:
Algorithm Nanos
SSLv3 8.889
DES 102.397
NULL 176.476
TLS1.3 642.859
JDK8u results after patch:
Algorithm Nanos
SSLv3 53.205
DES 36.405
NULL 26.642
TLS1.3 168.395
JDK11u results for reference:
Algorithm Nanos
SSLv3 48.563
DES 32.336
NULL 22.696
TLS1.3 194.921
No regression in the sun/security tests.
Regards
Alexey
[1] - https://bugs.openjdk.java.net/browse/JDK-8215281
More information about the jdk8u-dev
mailing list