Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch IReadOnlyList<> to ArraySegment<> #494

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Switch IReadOnlyList<> to ArraySegment<> #494

merged 1 commit into from
Aug 17, 2023

Conversation

viceroypenguin
Copy link
Owner

This PR updates the various Buffered API calls to process data using ArraySegment<> instead of IReadOnlyList<>; this will reduce allocations necessary to handle the buffered APIs.

Note

This is a binary-breaking change, but should be source-compatible unless someone relies specifically on IReadOnlyList<> in the func.

@viceroypenguin viceroypenguin added this to the 6.0.0 milestone Aug 17, 2023
@viceroypenguin viceroypenguin changed the title Update Buffered implementations to receive ArraySegment Switch IReadOnlyList<> to ArraySegment<> Aug 17, 2023
@viceroypenguin viceroypenguin merged commit 6c8e1c7 into v6.0.0 Aug 17, 2023
3 of 4 checks passed
@viceroypenguin viceroypenguin deleted the batch branch August 17, 2023 15:28
viceroypenguin added a commit that referenced this pull request Oct 23, 2023
Update Buffered implementations to receive `ArraySegment`
viceroypenguin added a commit that referenced this pull request Oct 27, 2023
Update Buffered implementations to receive `ArraySegment`
viceroypenguin added a commit that referenced this pull request Nov 27, 2023
Update Buffered implementations to receive `ArraySegment`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant