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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: 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. javac_perf1.patch
            2 kB
          3. src.zip
            406 kB

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

                Created:
                Updated:
                Resolved: