Charset.lookupViaProviders uses new ServiceLoader instance on each miss.
martinrb at google.com
Mon Jan 12 22:41:20 UTC 2015
I don't disagree about 3 elements in the cache being better than 2.
When I implemented this crappy cache, it was all about "2 is better than 1".
Yeah, maybe we could get a "real" cache someday...
On Mon, Jan 12, 2015 at 1:26 PM, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> 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/
More information about the core-libs-dev