Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8074002

java.time.ZoneId.systemDefault() should be faster

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • 8
    • b66

    Backports

      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.

        Attachments

          Issue Links

            Activity

              People

                plevart Peter Levart
                plevart Peter Levart
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: