java.time.ZoneId.systemDefalut() overhead

Stephen Colebourne scolebourne at joda.org
Fri Feb 27 12:16:42 UTC 2015


On 27 February 2015 at 10:55, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>> I don't think I saw an issue raised for caching the clock in ZoneId.
>> That seems like a good plan to me (ZoneId instances are controlled
>> singletons, so there is no big memory issue there)
>
> I'd been intending to log that. Thanks for reminding me!
> Here is the issue:
> https://bugs.openjdk.java.net/browse/JDK-8074023

I've commented on the issue. Its a little more complex than I thought,
but perfectly do-able. Just needs some ZoneId instances to be cached
as well.

Stephen



More information about the core-libs-dev mailing list