java.time.ZoneId.systemDefalut() overhead

Stephen Colebourne scolebourne at joda.org
Fri Feb 27 08:36:38 UTC 2015


On 26 February 2015 at 23:29, Peter Levart <peter.levart at gmail.com> wrote:
> Here's another variant that doesn't use a back link to base TimeZone:
> http://cr.openjdk.java.net/~plevart/jdk9-dev/ZoneId.systemDefault/webrev.03/

Yes, thats easier to follow. I think I'd be happy with that approach.

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)

Stephen



More information about the core-libs-dev mailing list