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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: