> See > > * [panama-dev@ thread 'String processing and Vector > APIs'](https://mail.openjdk.org/archives/list/[email protected]/thread/YSPX3TBXZTZEFZNXWDYOZCWLUQPC62P6/) > * [JDK-8390049: Immutable zero-copy String views of a String's code > units](https://bugs.openjdk.org/browse/JDK-8390049) > > > Benchmark (size) Mode Cnt Score Error > Units > StringLoadBenchmark.fromArray 1024 avgt 30 15.885 ± 0.024 > ns/op > StringLoadBenchmark.fromString 1024 avgt 30 15.886 ± 0.028 > ns/op > StringLoadBenchmark.getBytesFromArray 1024 avgt 30 29.056 ± 0.183 > ns/op > StringLoadBenchmark.scalar 1024 avgt 30 128.030 ± 1.462 > ns/op > StringLoadBenchmark.segment 1024 avgt 30 15.800 ± 0.019 > ns/op > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Liam Miller-Cushon 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 13 additional commits since the last revision: - Clean up unused import - Merge remote-tracking branch 'origin/master' into short-vector - Move asReadOnlyMemorySegment to String - Add a benchmark Also adjust javadoc, convert test to JUnit 5, other small adjustments - javadoc - Move access to jdk.internal.foreign.StringSupport - Make test inputs longer - Test coverage - Move to X-Vector.java.template, update javadoc, add masked overloads - ShortVector.compatibleWith - ... and 3 more: https://git.openjdk.org/jdk/compare/501b69b3...1c6ff6ab ------------- Changes: - all: https://git.openjdk.org/jdk/pull/32373/files - new: https://git.openjdk.org/jdk/pull/32373/files/cfce178a..1c6ff6ab Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=32373&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32373&range=02-03 Stats: 327778 lines in 3871 files changed: 186534 ins; 118081 del; 23163 mod Patch: https://git.openjdk.org/jdk/pull/32373.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32373/head:pull/32373 PR: https://git.openjdk.org/jdk/pull/32373
