RFR: 8339531: Improve performance of MemorySegment::mismatch [v7]

Per Minborg pminborg at openjdk.org
Thu Sep 5 14:00:11 UTC 2024


> This PR proposes to improve the performance of `MemorySegment::mismatch` by using Java code rather than transitioning to native code.

Per Minborg has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 15 additional commits since the last revision:

 - Move method to SegmentBulkOperations and fix benchmark
 - Merge branch 'master' into mismatch-performance2
 - Consolidate logic in one method
 - Update benchmarks
 - Add optimized checking
 - Merge branch 'master' into mismatch-performance2
 - Move fill to SegmentBulkOperations
 - Add system property and improve benchmark
 - Update src/java.base/share/classes/jdk/internal/foreign/SegmentBulkOperations.java
   
   Co-authored-by: Maurizio Cimadamore <54672762+mcimadamore at users.noreply.github.com>
 - Remove temp methods
 - ... and 5 more: https://git.openjdk.org/jdk/compare/7fea4e9d...5cccbf40

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20848/files
  - new: https://git.openjdk.org/jdk/pull/20848/files/24706141..5cccbf40

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20848&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20848&range=05-06

  Stats: 642 lines in 16 files changed: 570 ins; 55 del; 17 mod
  Patch: https://git.openjdk.org/jdk/pull/20848.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20848/head:pull/20848

PR: https://git.openjdk.org/jdk/pull/20848


More information about the core-libs-dev mailing list