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

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 8u40
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: