JDK-8074002 : java.time.ZoneId.systemDefault() should be faster
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.time
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-02-26
  • Updated: 2023-01-05
  • Resolved: 2015-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b66Fixed
Related Reports
Relates :  
Relates :  
Description
Obtaining default system ZoneId is a frequent call. It should have as little overhead as possible. This call is implemented as: TimeZone.getDefault().toZoneId(), so the opportunity is to cache the instance inside default TimeZone instance.
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/fafc39e9a46a User: lana Date: 2015-05-27 18:31:20 +0000
27-05-2015

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/fafc39e9a46a User: plevart Date: 2015-05-17 17:20:33 +0000
17-05-2015

This is a proposed patch: http://cr.openjdk.java.net/~plevart/jdk9-dev/ZoneId.systemDefault/webrev.03/
26-02-2015