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

Investigate String Measurement in FX (cache results, call less, ...)

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 8
    • 8
    • javafx

    Description

      It is no secret that the cost of string measuring can have a huge effect on performance. String measuring operations are called often in FX to determine the preferred size of controls and layout happens often in FX as application code changes the contents of controls.

      It's easy to see the same strings being measured over and over again. We could fix the callers to cache/call less or cache previous results way down deep inside of Prism.

      Attachments

        1. RT30158.java
          2 kB
        2. RT30158.txt
          6 kB
        3. RT-30158.txt
          6 kB
        4. rt-closed-string-cache.patch
          6 kB

        Activity

          People

            fheidric Felipe Heidrich (Inactive)
            snorthov Steve Northover (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: