RFR: 8285001: Simplify StringLatin1.regionMatches
Naoto Sato
naoto at openjdk.java.net
Tue Apr 19 16:11:19 UTC 2022
On Tue, 19 Apr 2022 08:50:09 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> There is no pair of character values in the latin1 range (0-255) that will make the condition at line 401 in `StringLatin1.java` true, so this test can be removed.
>
> Added a test and a microbenchmark (which as expected sees a few ns/op improvement from this change). Took the opportunity to tune the default settings for the micro to reduce runtime from 30+ minutes to 3 with no discernible degradation of quality.
Marked as reviewed by naoto (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8292
More information about the core-libs-dev
mailing list