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

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

      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.

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

              Created:
              Updated:
              Resolved: