Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048242 Improve Nashorn startup and warmup time
  3. JDK-8048869

Reduce time spent in jdk.nashorn.internal.ir.Node.accept/java.lang.Class.cast(Object)

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Right now it's badly written, with an expensive native cast. I have managed to ~double the speed by rewriting this with an unchecked cast and a suppress warnings, and some better typing.

        However, IR iteration is the key to a lot of compile time, so we should investigate how many unnecessary iterations we do, maybe profile nodes that are iterated through without being modified, or maybe having specific iterators that don't go through all nodes, but just previously memoized ones of certain types.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lagergren Marcus Lagergren
                Reporter:
                lagergren Marcus Lagergren
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: