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

Make equality tests inline better

XMLWordPrintable

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

        Avatar tests can spend up to 5% of their runtime comparing objects using == or != operator. With our current compilation techniques, a call to ScriptRuntime.equals() is only invoked when the arguments are objects - when we know they're numbers etc. those cases are caught by the compiler. Therefore, prioritizing object comparison and extracting other comparison into separate methods so the primary methods are smaller provides a performance benefit.

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

                Created:
                Updated:
                Resolved: