Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Aug 17, 2022

Fixes the performance issue tested in #2977.
The problem was that we were tracking all possible returned values throughout the method, since we were treating them the same as hoisted locals. I'm sure it's still possible to come up with testcases that show bad performance (for example assigning many arrays to a hoisted local in the same iterator), but this should at least fix the immediate issue encountered in runtime.

Copy link
Member

@jtschuster jtschuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sbomer sbomer merged commit bc1f05f into dotnet:main Aug 17, 2022
@MichalStrehovsky
Copy link
Member

I tried this on my repro case and now the compilation finishes in reasonable time. Thanks!

MichalStrehovsky added a commit to MichalStrehovsky/runtime that referenced this pull request Aug 17, 2022
MichalStrehovsky added a commit to dotnet/runtime that referenced this pull request Aug 19, 2022
github-actions bot pushed a commit to dotnet/runtime that referenced this pull request Aug 19, 2022
jeffschwMSFT pushed a commit to dotnet/runtime that referenced this pull request Aug 20, 2022
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
There was a performance problem where we were tracking all
possible returned values throughout the method, since we were
treating them the same as hoisted locals. I'm sure it's still
possible to come up with testcases that show bad performance (for
example assigning many arrays to a hoisted local in the same
iterator), but this should at least fix the immediate issue
encountered in runtime.

Commit migrated from dotnet/linker@bc1f05f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants