performance: GregorianCalendar.timeToFields() always calls floorDivide()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • None
    • beta
    • generic
    • generic

      GregorianCalendar.timeToFields() always uses floorDivide() for its calculation. If `gregorianEpochDay' is known to be a positive numbner, we can avoid the floorDivide() calls. This will save several microseconds per timeToFields() call.

            Assignee:
            Masayoshi Okutsu
            Reporter:
            Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: