Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Continue outlining past bindings that cannot be outlined, copy arguments duplicated into match targets, restrict sequential handling to NormalSeq, guard the outline walk against deep let chains, and share the Await builder and match/quotation helpers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Outline suspending InlineIfLambda callbacks and prepare runtime-async bodies in a dedicated pass after the first optimization loop, so every body is prepared once in its final shape. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Outlined callbacks ran as separate runtime-async methods, so AsyncLocal writes they made were discarded on return. A callback selected by if/match is now constructed once, recording its branch and captures in locals, and each invocation dispatches to an inlined copy of the selected body. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Every invocation copies every branch body. Skip the rewrite when the copies would exceed 2000 expression nodes, leaving the callback as a closure so a remaining suspension is reported as FS3918. Add regression tests for callbacks constructed in a loop and nested branch-selected callbacks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
✅ Release notes checked
Warning No PR link found in some release notes, please consider adding it.
|
This branch has not been deployed
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.
Outline inline functions that failed to inline into a runtime-async method. Alternative fix for #20577 (see also #20647).