RFR: 8263677: Improve Character.isLowerCase/isUpperCase lookups [v2]
Magnus Ihse Bursie
ihse at openjdk.java.net
Tue Mar 16 21:32:09 UTC 2021
On Tue, 16 Mar 2021 21:02:28 GMT, Claes Redestad <redestad at openjdk.org> wrote:
>> This patch changes the otherLowercase / otherUppercase bits to be set if either the codepoint is of type LOWERCASE_LETTER and UPPERCASE_LETTER, or the Unicode Other_Lowercase / Other_Uppercase property is set. This simplifies the lookup in Character.isLowerCase/isUpperCase to a single table lookup, which appears to be healthy for performance.
>>
>> I also took the opportunity to clean up the somewhat dated GenerateCharacter utility class.
>>
>> Testing: tier1-3
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>
> Roger review + additional cleanups
Marked as reviewed by ihse (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3028
More information about the build-dev
mailing list