Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Nov 1, 2021

View with whitespace changes off.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 1, 2021 22:54
@ghost ghost added the Area-IDE label Nov 1, 2021
return Path.Combine(appDataFolder, "Microsoft", "VisualStudio", "Roslyn", "Cache");
s_cacheDirectory = Path.Combine(appDataFolder, "Microsoft", "VisualStudio", "Roslyn", "Cache");

s_moduleFileName = SafeName(Process.GetCurrentProcess().MainModule.FileName);
Copy link
Member Author

Choose a reason for hiding this comment

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

in particular, .MainModule turns out to be extremely expensive, and it looks like it is expensive every time it is run. Given that we keep creating fresh storage instances (also addressed here #57513) this turned out to be a huge hotspot.

@CyrusNajmabadi CyrusNajmabadi merged commit 30c493a into dotnet:main Nov 2, 2021
@ghost ghost added this to the Next milestone Nov 2, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the cachePersistenceLocatoin branch November 2, 2021 00:31
@sharwell
Copy link
Contributor

sharwell commented Nov 2, 2021

Thanks!

@allisonchou allisonchou modified the milestones: Next, 17.1.P2 Nov 30, 2021
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.

4 participants