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

Revisit caching code in SunLayoutEngine.java

    XMLWordPrintable

Details

    • 2d
    • generic
    • generic

    Description

      In bug 7183251 I found that we are caching in a map SunLayoutEngine instances
      which really just wrap a copy of the key used to look them up.
      Then SLE just calls a static native method.
      If some native state/object were caching expensive state it might make
      sense but setting up those native objects seems to be cheap.
      It all seems like overhead. I think we can dispense with creating the map,
      the keys and instances of SunLayoutEngine and just call the static native method.

      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: