Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-708

DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: wtk-terra
    • Labels:
      None

      Description

      In the file

      ./apache-pivot-2.0-src/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java
      line:281

      DateFormat.getDateTimeInstance() is created in the function. We can cache the result by adding a static class field.

      It is similar to the Apache Bug https://issues.apache.org/bugzilla/show_bug.cgi?id=48778

        Attachments

        1. patch.patch
          2 kB
          Sandro Martini

          Activity

            People

            • Assignee:
              smartini Sandro Martini
              Reporter:
              nancyesmis Xiaoming Shi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: