Skip to content

Conversation

@ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented Apr 27, 2025

*** WIP: Optimize work done in ProjectCodeModelFactory

The first 3 commits in this PR are the work from #78333. The final commit is the payload of this PR, as it builds on 78333 and that has not yet been merged. I didn't want to include this in that PR as it's a separate concern.

Test insertion PR: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/631967

Speedometer results came back looking good. Will create a real PR for this once 78333 is finished.

*** old CPU under ProjectCodeModelFactory ***
image

*** old allocs under ProjectCodeModelFactory ***
image

*** new CPU under ProjectCodeModelFactory ***
image

*** new allocs under ProjectCodeModelFactory ***
image

If there were any questions about the event needing the main thread, this PR attempts to be safe in the assumptions. Future PRs can judiciously look at moving event handlers to work on background threads.
Will add more details if a speedometer run shows a marked improvement in the CPU work done in this class.
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 27, 2025
@ToddGrun ToddGrun changed the title Dev/toddgrun/project code model factory perf *** WIP: Optimize work done in ProjectCodeModelFactory Apr 27, 2025
@ToddGrun
Copy link
Contributor Author

Superseded by #78369

@ToddGrun ToddGrun closed this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants