Make equality tests inline better

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: