Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012184 Get time spent in CodeGenerator down
  3. JDK-8013203

A collection of smaller speedups to compilation pipeline

    XMLWordPrintable

Details

    • Sub-task
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None

    Description

      I was looking at the compilation speed of mandreel.js with a profiler, and identified few small changes that improve the speed of compilation:
      - parsing a long constant in Lexer always threw a NumberFormatException as it first tried to parse it as int.
      - there was still a lot of string concatenation in debug() calls in MethodEmitter. Eliminated them all.
      - generating a name for labels for line numbers showed up on profiler's radar; the name was not really used.
      - repeated discovery of field getters/setters for structure classes when they were used in different maps. Introduced a class that caches them in a ClassValue associated with the structure class.

      Attachments

        Activity

          People

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: