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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 8u40
    • core-libs
    • None
    • b26
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: