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

Vectorize VectorShuffle checkIndexes, wrapIndexes and laneIsValid methods

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b13

      Description

      The hot path of VectorShuffle checkIndexes, wrapIndexes and laneIsValid methods can be implemented using Vector API methods.

      For the attached jmh TestSlice.java, performance improves as below.

      Before:
      Benchmark (size) Mode Cnt Score Error Units
      TestSlice.vectorSliceOrigin 1024 thrpt 5 1224.698 ± 53.825 ops/ms
      TestSlice.vectorSliceUnsliceOrigin 1024 thrpt 5 657.895 ± 31.945 ops/ms

      After:
      Benchmark (size) Mode Cnt Score Error Units
      TestSlice.vectorSliceOrigin 1024 thrpt 5 11221.532 ± 88.616 ops/ms
      TestSlice.vectorSliceUnsliceOrigin 1024 thrpt 5 6509.519 ± 18.102 ops/ms

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sviswanathan Sandhya Viswanathan
              Reporter:
              sviswanathan Sandhya Viswanathan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: