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

Improve performance of Nashorn equality operators

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: