Charset.lookupViaProviders uses new ServiceLoader instance on each miss.

Ulf Zibis Ulf.Zibis at gmx.de
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: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6795535

-Ulf




More information about the core-libs-dev mailing list