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

Consider unrolling selected hashCode loops

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P3
    • None
    • None
    • hotspot
    • generic
    • generic

    Description

      Richard Startin points out that C2 (still) can't vectorize simple hashCode loops:

        https://richardstartin.com/2017/07/23/still-true-in-java-9-handwritten-hash-codes-are-faster/

      We should investigate whether it's worth unrolling selected hashCode methods in, e.g., java.lang.String and java.util.Arrays, by hand.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mr Mark Reinhold
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: