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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • wtk-terra
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: