On Wed, 13 Aug 2025 10:08:33 GMT, Per Minborg <pminb...@openjdk.org> wrote:

>> This PR proposes to use overlapping memory areas in 
>> `SegmentBulkOperations::copy`, similar to what is proposed for 
>> `SegmentBulkOperations::fill` in https://github.com/openjdk/jdk/pull/25383.
>> 
>> This PR passes `tier1`, `tier2`, and `tier3`testing on multiple platforms.
>
> 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 12 additional 
> commits since the last revision:
> 
>  - Revert comment
>  - Revert change in AMSI
>  - Back paddle on the branchless overlap method
>  - Merge branch 'master' into copy-overlap
>  - Fix comment
>  - Simplify
>  - Update copyright year
>  - Add a branchless overlaps method
>  - Optimize copy for certain lengths
>  - Add methods to ScopedMemoryAccess
>  - ... and 2 more: https://git.openjdk.org/jdk/compare/02caf89b...1a1606e2

Here are the latest performance figures (Mac M1):

Bytes | Base | Patch | Improvement
-- | -- | -- | --
2 | 3.184 | 2.832 | 11.06%
3 | 3.162 | 2.837 | 10.28%
4 | 3.344 | 2.835 | 15.22%
5 | 3.31 | 2.826 | 14.62%
6 | 3.328 | 2.848 | 14.42%
7 | 3.289 | 2.826 | 14.08%
8 | 4.139 | 2.747 | 33.63%
12 | 4.709 | 2.871 | 39.03%
16 | 4.173 | 3.782 | 9.37%
24 | 4.239 | 4.085 | 3.63%
64 | 4.86 | 4.815 | 0.93%

<img width="776" height="480" alt="image" 
src="https://github.com/user-attachments/assets/4870b554-7170-49b9-84aa-47540fd1efab";
 />

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

PR Comment: https://git.openjdk.org/jdk/pull/26672#issuecomment-3183267461

Reply via email to