Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043002

Improve performance of Nashorn equality operators

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • core-libs
    • None
    • b17
    • generic
    • generic

        Nashorn equality operators check the types of their operands. The JSType.of() function that it uses does a costly distinction between OBJECT and FUNCTION, but that's unnecessary for the equality algorithm. A new "ofNoFunction" method that does not distinguish OBJECT and FUNCTION types is needed.

        This is one of recently discovered significant performance bottlenecks in Avatar.

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

                Created:
                Updated:
                Resolved: