Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve memory usage #2866

Merged
merged 1 commit into from
Mar 24, 2023
Merged

Improve memory usage #2866

merged 1 commit into from
Mar 24, 2023

Conversation

colombod
Copy link
Member

This change improves memory behaviour for csharp kernel

@colombod colombod merged commit 30f5e3e into dotnet:main Mar 24, 2023
@colombod colombod deleted the perf_memory branch March 24, 2023 21:08
//This fixes an issue where the performance of language services is degrading each time a new submission is run.
//Forces the creation of the Compilation object in the project of the previous submission
//If the compilation were not eagerly created, the entire solution would be compiled each
//time it is used to answer a language service question (ForkDocumentForLanguageServices).
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a tradeoff between memory and throughput?

In other words, does removing this code mean that intellisense will be slower because "entire solution would be compiled each time it is used to answer a language service question"? Or is it safe to remove this code because the underlying problem has been fixed in Roslyn, and it is no longer necessary to materialize the compilation each time?

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.

3 participants