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

Improve performance of Nashorn equality operators

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: