Repository navigation
Elide async frames in pass-through request pipeline layers - #10621
Merged
Merged
Conversation
This was referenced Oct 19, 2026
tobias-tengler
force-pushed
the
tte/elide-pipeline-async-frames
branch
from
October 20, 2026 06:38
35a1c8d to
3c528ab
Compare
tobias-tengler
marked this pull request as ready for review
October 20, 2026 06:41
Request pipeline layers that have no work after the next layer completes now return the next layer's task instead of awaiting it, so they no longer allocate an async state machine box when execution suspends: - document parser, document validation and warmup skip middleware - the instrumentation middleware is left out when no diagnostic listener is registered
tobias-tengler
force-pushed
the
tte/elide-pipeline-async-frames
branch
from
October 20, 2026 08:51
3c528ab to
5aba7c5
Compare
Contributor
Patch coverage100.0% of changed lines covered (15/15)
Project coverage: 59.1% (312249/528530 lines) |
This was referenced Oct 25, 2026
Merged
This was referenced Nov 16, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 32 others
AdCodicem/AdCodicem.ValueObjects#262
Closed
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.
Several request pipeline layers await the next layer only to return afterwards: the document parser, document validation and warmup skip middleware, the instrumentation middleware when no diagnostic listener is registered. Each of them boxes its own async state machine whenever the request suspends, which happens on every subgraph call.
This PR returns the next layer's task directly from these layers. The instrumentation middleware is left out of the pipeline when the registered diagnostic events are the no-op implementation.