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

Optimize Arrays.deepHashCode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      In Arrays.deepHashCode, the common case should be non-array leaf elements, but those are only reached in the code after an exhaustive search of rare primitive array types. Also, avoid using instanceof when identity comparison of Class objects is possible.

        Attachments

          Activity

            People

            Assignee:
            martin Martin Buchholz
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: