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 intermediaty 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.

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.

1 participant