Skip to content

Propagate copy_from through SubImage#2768

Merged
197g merged 1 commit intomainfrom
efficient-copy
Feb 13, 2026
Merged

Propagate copy_from through SubImage#2768
197g merged 1 commit intomainfrom
efficient-copy

Conversation

@197g
Copy link
Member

@197g 197g commented Feb 13, 2026

See #2766 but for all SubImage<I> that is improved. Gains from this are even more absurd, as previous code would unroll or elide much based on the in-bounds verification—complicating the indexing in the tight loop significantly.

Details
copy_subimage_from      time:   [530.38 µs 548.81 µs 565.15 µs]
                        change: [-92.413% -92.100% -91.797%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe

copy_subimage_at        time:   [39.675 µs 40.163 µs 40.747 µs]
                        change: [-95.561% -95.440% -95.324%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
  1 (1.00%) high mild
  6 (6.00%) high severe

copy_subimage_view      time:   [42.345 µs 42.665 µs 43.014 µs]
                        change: [-94.854% -94.675% -94.494%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe

copy_subimage_fill      time:   [132.67 µs 133.60 µs 134.73 µs]
                        change: [-83.000% -82.719% -82.424%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) high mild
  2 (2.00%) high severe

copy_subimage_strides   time:   [36.394 µs 36.609 µs 36.860 µs]
                        change: [-81.753% -81.251% -80.794%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 9 outliers among 100 measurements (9.00%)
  8 (8.00%) high mild
  1 (1.00%) high severe

@197g 197g merged commit f054059 into main Feb 13, 2026
32 checks passed
@197g 197g deleted the efficient-copy branch February 13, 2026 04:57
@github-project-automation github-project-automation bot moved this from Backlog to Done in Release 0.25.* Feb 13, 2026
@197g 197g moved this from Done to Ready in Release 0.25.* Feb 13, 2026
@197g 197g mentioned this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

1 participant