[foreign-memaccess+abi] RFR: Improve strlen performance [v7]

Per Minborg pminborg at openjdk.org
Wed Aug 16 11:45:53 UTC 2023


> This PR suggests removing the use of native calls for strlen and instead use Java implementations.
> 
> The PR also suggest performance improvements for quad word strlen.
> 
> Here are some benchmarks that compares the performance of the new proposed methods with the performance of the JDK 21 variants (called "legacy" methods):
> 
> <img width="2596" alt="image" src="https://github.com/openjdk/panama-foreign/assets/7457876/c785f341-c826-4e3e-bf56-8387b1e96010">

Per Minborg has updated the pull request incrementally with three additional commits since the last revision:

 - Convert HeapArena into a real Arena
 - Break out separate predicate method
 - Use real methods in benchmarks

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

Changes:
  - all: https://git.openjdk.org/panama-foreign/pull/862/files
  - new: https://git.openjdk.org/panama-foreign/pull/862/files/d4774b6d..b29aac93

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=panama-foreign&pr=862&range=06
 - incr: https://webrevs.openjdk.org/?repo=panama-foreign&pr=862&range=05-06

  Stats: 245 lines in 4 files changed: 15 ins; 210 del; 20 mod
  Patch: https://git.openjdk.org/panama-foreign/pull/862.diff
  Fetch: git fetch https://git.openjdk.org/panama-foreign.git pull/862/head:pull/862

PR: https://git.openjdk.org/panama-foreign/pull/862


More information about the panama-dev mailing list