Repository navigation
[Fusion] Call alias-batched subgraphs without nested async iterators - #10940
Merged
Merged
Conversation
Contributor
Patch coverage94.3% of changed lines covered (181/192)
Uncovered changed lines (JSON){
"sha": "fd15bc3a11d49848962bd764214f3625a797b037",
"files": [
{ "path": "src/HotChocolate/Fusion/src/Fusion.Execution/Execution/Clients/HttpSourceSchemaClient.AliasBatching.cs", "ranges": [[113, 116], [168, 171], [272, 273], [458, 458]] }
]
}Project coverage: 59.8% (327299/546882 lines) |
This was referenced Nov 17, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 16.7.5 to 16.7.7
Kuestenlogik/Bowire#1032
Merged
This was referenced Nov 23, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 43 others
AdCodicem/AdCodicem.ValueObjects#274
Closed
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.
#10707 moved subgraph calls onto a buffered path, but alias-batched requests stayed on the old streaming path with two nested async iterators and three new arrays per call. Alias-batched variable sets and operation batches now take the buffered path too, and their per-call arrays come from the shared array pool. On the benchmark this covers the reviews batch, which is on the critical path, and the inventory lookup. Each request allocates about 15% less, and responses are byte-identical. Batches with fewer than two items, or with a request that cannot join the batch, keep the streaming path.
Measured on the benchmark twin with the official 16.7.0 subgraphs and the official gateway settings, before is a280f13: req/s, CPU and allocations are means of 2-5 interleaved rounds (40 s warm-up, 45 s measured), and the RSS and GC rows are the last 120 s of 3-minute runs, 2 per mode, because a 45 s window can catch the one-time drop after warm-up, which comes later when fewer gen1 GCs run.