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

Avoid an async state machine allocation from CopyResponseBodyAsync #2586

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

MihaZupan
Copy link
Member

There's no reason for this to be a separate helper anymore, the edge case it was handling doesn't exist anymore since .NET 5.
We can inline it and save the allocation.

@MihaZupan MihaZupan added this to the YARP 2.2 milestone Aug 27, 2024
@MihaZupan MihaZupan merged commit 1e57d20 into microsoft:main Aug 27, 2024
7 checks passed
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.

2 participants