Skip to content

[k2] prevent copying of array in some cases#1431

Merged
apolyakov merged 1 commit into
masterfrom
apolyakov/k2-optimize-iteration-over-array
Oct 17, 2025
Merged

[k2] prevent copying of array in some cases#1431
apolyakov merged 1 commit into
masterfrom
apolyakov/k2-optimize-iteration-over-array

Conversation

@apolyakov
Copy link
Copy Markdown
Contributor

@apolyakov apolyakov commented Oct 16, 2025

Iterating over a non-const shared array leads to array copy being created which is unnecessary in some cases

@apolyakov apolyakov added this to the next milestone Oct 16, 2025
@apolyakov apolyakov self-assigned this Oct 16, 2025
@apolyakov apolyakov added the k2 Affects compiler or runtime in K2 mode label Oct 16, 2025
Copy link
Copy Markdown
Contributor

@astrophysik astrophysik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@apolyakov apolyakov merged commit 332afc8 into master Oct 17, 2025
7 of 8 checks passed
@apolyakov apolyakov deleted the apolyakov/k2-optimize-iteration-over-array branch October 17, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

k2 Affects compiler or runtime in K2 mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants