On Tue, 16 Mar 2021 12:51:02 GMT, Claes Redestad <redes...@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

This pull request has now been integrated.

Changeset: e152cc03
Author:    Claes Redestad <redes...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/e152cc03
Stats:     283 lines in 8 files changed: 15 ins; 137 del; 131 mod

8263677: Improve Character.isLowerCase/isUpperCase lookups

Reviewed-by: erikj, ihse, naoto, rriggs

-------------

PR: https://git.openjdk.java.net/jdk/pull/3028

Reply via email to