Skip to content

Optimize InsertRange for segmented collections#51331

Merged
sharwell merged 1 commit intodotnet:masterfrom
sharwell:insert-range
Feb 20, 2021
Merged

Optimize InsertRange for segmented collections#51331
sharwell merged 1 commit intodotnet:masterfrom
sharwell:insert-range

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Feb 19, 2021

  • Avoid enumerator boxing allocations when attempting to insert a segmented collection into another (includes the AddRange case).
  • Fix a failure to account for the _completed count in UnalignedSegmentEnumerator.

@sharwell sharwell merged commit 592eef3 into dotnet:master Feb 20, 2021
@ghost ghost added this to the Next milestone Feb 20, 2021
@sharwell sharwell deleted the insert-range branch February 20, 2021 18:55
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants