Skip to content

Switch a bunch of manual loops to built-in AddRange/SequenceEqual/CopyTo... helpers - #136893

Merged
MihaZupan merged 3 commits into
dotnet:mainfrom
MihaZupan:use-bulk-helpers
Nov 25, 2026
Merged

MihaZupan merged 3 commits into
dotnet:mainfrom
MihaZupan:use-bulk-helpers

Conversation

@MihaZupan

@MihaZupan MihaZupan commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Replace manual copy, comparison, search, counting, and clearing loops with existing collection and span APIs, including AddRange, UnionWith, SequenceEqual, and CommonPrefixLength.

Note

This description was drafted with GitHub Copilot.

@MihaZupan MihaZupan added this to the 12.0.0 milestone Nov 3, 2026
@MihaZupan MihaZupan self-assigned this Nov 3, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

@tannergooding tannergooding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. We need to monitor for perf and potentially add relevant fast paths or other changes to ensure that typical paths don't regress compared to the trivial for loop

@MihaZupan

Copy link
Copy Markdown
Member Author

Had to rebase due to a conflict

@MihaZupan
MihaZupan merged commit 7fc13ad into dotnet:main Nov 25, 2026
107 of 110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Meta tenet-performance Performance related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants