Repository navigation
[Fusion] Reduce source-response buffer copies - #10581
Merged
Merged
Conversation
Contributor
Patch coverage91.1% of changed lines covered (41/45)
Uncovered changed lines (JSON){
"sha": "35ad53bb3d2756c9de4406254b98c53f78cc73ad",
"files": [
{ "path": "src/HotChocolate/Fusion/src/Fusion.Execution/Text/Json/ThrowHelper.cs", "ranges": [[16, 16]] },
{ "path": "src/HotChocolate/AspNetCore/src/Transport.Http/GraphQLHttpResponse.cs", "ranges": [[651, 652], [655, 655]] }
]
}Project coverage: 59.0% (311306/527697 lines) |
tobias-tengler
marked this pull request as ready for review
October 17, 2026 19:54
This was referenced Oct 25, 2026
Merged
This was referenced Nov 1, 2026
This was referenced Nov 15, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 32 others
AdCodicem/AdCodicem.ValueObjects#262
Closed
This was referenced Nov 22, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 43 others
AdCodicem/AdCodicem.ValueObjects#274
Closed
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fusion reads source responses with an unknown
Content-Length, or a length above 16 KiB, through an intermediatePipeReaderbuffer before copying them into the request arena. Warm Apollo Federation profiles identify recurringStreamPipeReaderandBufferSegmentallocations on this path.Read these bodies directly into the existing arena chunks and parse the filled chunks after EOF. Known positive lengths up to 16 KiB retain their current path; cancellation, transcoding and stream ownership follow the existing response lifetime.
mainmainmainBenchmark results above were measured at
f7e8b809, before the readability and explicit cancellation-check follow-ups.