Skip to content

Delay symbol-search index updating until solution is fully loaded.#60746

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:delaySymbolSearch
Apr 14, 2022
Merged

Delay symbol-search index updating until solution is fully loaded.#60746
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:delaySymbolSearch

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Potential fix for https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1513707

It appears as if some perf work we've done in our package (liek #60211 for example) has had some unintended consequences. Specifically, because we've gotten better at moving things to the BG and getting out of hte package load codepath, this also means that we start running bg tasks earlier, which then consumes resources that competes with other VS components during important times like solution load.

Two cases of this are the Nuget-search-indexer (which pulls down an index from our servers) and the Nuget-package-scanner (which analyzes the current VS project structure to see what nuget packages and versions we're already referencing). Neither of these need to start right away, and we can delay them until the solution is actually fully loaded.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 14, 2022 17:20
@ghost ghost added the Area-IDE label Apr 14, 2022
Copy link
Copy Markdown
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

seems good to me if it fixes the regression!

@CyrusNajmabadi CyrusNajmabadi merged commit d9ac639 into dotnet:main Apr 14, 2022
@ghost ghost added this to the Next milestone Apr 14, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the delaySymbolSearch branch April 14, 2022 19:00
@dibarbet dibarbet modified the milestones: Next, 17.3.P1 Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants