<i18n dev> RFR: 8263677: Improve Character.isLowerCase/isUpperCase lookups
erikj at openjdk.java.net
Tue Mar 16 20:02:14 UTC 2021
On Tue, 16 Mar 2021 12:51:02 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
Looks good from build point of view. I like the code cleanups.
Marked as reviewed by erikj (Reviewer).
More information about the i18n-dev