Clock.systemUTC() has been optimized to return a constant.
It would be good if Clock.systemDefaultZone() and Clock.system(ZoneId) could also be optimized to avoid creating new instance of Clock.SystemClock every time they are called.
One possible solution was proposed on core-libs-dev:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-February/031759.html
It would be good if Clock.systemDefaultZone() and Clock.system(ZoneId) could also be optimized to avoid creating new instance of Clock.SystemClock every time they are called.
One possible solution was proposed on core-libs-dev:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-February/031759.html
- relates to
-
JDK-8074002 java.time.ZoneId.systemDefault() should be faster
-
- Resolved
-
-
JDK-8073394 Clock.systemUTC() should return a constant
-
- Resolved
-