Charset.lookupViaProviders uses new ServiceLoader instance on each miss.

Ulf Zibis Ulf.Zibis at
Mon Jan 12 21:26:24 UTC 2015

Am 12.01.2015 um 20:42 schrieb Martin Buchholz:
> Historical notes:
> I added the two-element cache many years ago, assuming that code that
> repeatedly accessed more than 2 charsets would be rare.

I suspect this opinion, see:


More information about the core-libs-dev mailing list