Skip to content

Don't split resumable code #17076

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

Merged
merged 4 commits into from
Apr 23, 2024
Merged

Conversation

vzarytovskii
Copy link
Member

@vzarytovskii vzarytovskii commented Apr 22, 2024

Description

Decision tree splitting during optimisation had some low-ish thresholds, here we make sure we don't ever split if we see resumable code invocation (in this case we check for the application for Run/Delay, etc).

Fixes #16068

Checklist

  • Test cases added
  • Release notes entry updated

@vzarytovskii vzarytovskii requested a review from a team as a code owner April 22, 2024 12:43
@vzarytovskii vzarytovskii changed the title Dont split resumable code Don't split resumable code Apr 22, 2024
Copy link
Contributor

github-actions bot commented Apr 22, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.400.md

@psfinaki
Copy link
Member

I think I saw this warning suppressed in a couple of our projects (at least editor and editor.tests) - can the suppression be removed there now?

@vzarytovskii
Copy link
Member Author

vzarytovskii commented Apr 22, 2024

I think I saw this warning suppressed in a couple of our projects (at least editor and editor.tests) - can the suppression be removed there now?

No, this fixes only specific case - when it was caused by function split. Others should be worked on 1 by 1, besides it's only ignored in tests, and this warning (FS3511) by no means crucial, code still works, RunDynamic is still fast.

@T-Gro T-Gro merged commit f68d7b6 into dotnet:main Apr 23, 2024
psfinaki pushed a commit that referenced this pull request Apr 23, 2024
Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Task builder produces warning if there are too many bindings inside IF branch
3 participants