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

    • Sub-task
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 8u40
    • 9
    • core-libs
    • None
    • b26
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: