<i18n dev> RFR: 8309622: Re-examine the cache mechanism in BaseLocale

Naoto Sato naoto at openjdk.org
Mon Jun 12 17:33:11 UTC 2023


On Mon, 12 Jun 2023 16:23:29 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> One other thing to consider... If the BaseLocale entries are being GC'd sooner, then perhaps the value of the String.intern() is reduced. Eliminating `.intern90` would make creating a normalized BaseLocale faster.

Some code inside the Locale still relies on `intern` and do `==` comparison. Yes, it would be faster but I think that would be out of the scope of this fix

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

PR Comment: https://git.openjdk.org/jdk/pull/14404#issuecomment-1587760602


More information about the i18n-dev mailing list