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

Reduce cost of year and month calculations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • core-libs
    • b17

      There are a few divisions during the year and month calculations that could be avoided in ZoneRules::findYear and LocalDate::ofEpochDay, especially when just checking that we're above a certain threshold. Simplifying have a positive impact microbenchmarks (when testing on a couple of x86 and aarch64 machines)

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: