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

Skip to content

Conversation

@ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented Dec 10, 2025

Make and use a builder for DeclarationTable edits to reduce allocations from creating intermediary DeclarationTable and repeated modifications to an underlying ImmutableDictionary.

Insertion PR: https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/695154

PIT results:
image

Allocations in VS under SyntaxAndDeclarationManager.CreateState from ScrollingAndTyping test, Typing scenario:

*** Before ***
image

*** After ***
image

Will cleanup and add more details if speedometer run looks promising.

Create builder for DeclarationTable to reduce allocations.
@ToddGrun ToddGrun changed the title *** WIP -- DeclarationTable allocation reductions DeclarationTable allocation reductions Dec 13, 2025
@ToddGrun ToddGrun marked this pull request as ready for review December 13, 2025 15:03
@ToddGrun ToddGrun requested a review from a team as a code owner December 13, 2025 15:03
@ToddGrun
Copy link
Contributor Author

Finally got perf results back, and this looked promising. Elevating out of draft status and this is ready for review.

@ToddGrun
Copy link
Contributor Author

@dotnet/roslyn-compiler -- ptal

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 5)

@AlekseyTs AlekseyTs requested a review from a team December 16, 2025 19:09
@AlekseyTs
Copy link
Contributor

@dotnet/roslyn-compiler For a second review

@ToddGrun ToddGrun merged commit 383a15a into dotnet:main Dec 17, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants