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

Huge performance bottleneck in com.sun.tools.javac.comp.Check.localClassName

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • tools
    • b88
    • generic
    • generic
    • Verified

        Compilation inner classes uses huge performance ineffectiveness in com.sun.tools.javac.comp.Check.localClassName.
        Compiling attached test (src.zip) javac spends more than 75% of time in the method.
        Storing last used (or free) index in the map is more efficient than running through indexes.
        Suggested patch (attached, to jdk8) speedup compilation from 3 min 19 sec to 33 sec. 6x times.

          1. javac_perf.patch
            2 kB
          2. src.zip
            406 kB
          3. javac_perf1.patch
            2 kB

              sadayapalam Srikanth Adayapalam (Inactive)
              skuksenko Sergey Kuksenko
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: