Reduce cost of year and month calculations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: 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)

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

              Created:
              Updated:
              Resolved: