<i18n dev> RFR: 8309622: Re-examine the cache mechanism in BaseLocale
Aleksey Shipilev
shade at openjdk.org
Wed Nov 1 09:54:28 UTC 2023
On Mon, 12 Jun 2023 17:28:44 GMT, Naoto Sato <naoto 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.
>
>> 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
@naotoj, we are still seeing the CI failures due to this. Are you planning to finish this work? Thanks!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14404#issuecomment-1788686569
More information about the i18n-dev
mailing list