-
Notifications
You must be signed in to change notification settings - Fork 231
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
Allocations: Unroll AdditionalFile extension method #7440
Comments
This is a great catch! Thank you for reporting it. Do you know from user logs how many additional files user had? I have a feeling that we call that method way too often and fine-tuning the implementation could have no impact. What do you think of caching the value and using |
It should be possible to slice the string after the final |
The measurement of a These two allocations contribute 1GB for the string + 700MB for the delegate + 260 MB for the capture class out of 11,3 GB total. We are also responsible for SymbolDisplay allocations shown above. The driver is here TypeHelper.IsMatch in Sonar-Security: Note: I stopped capturing in the middle of the build after 30 minutes. |
There is an overload that takes a
|
Accounts for 5037MB allocations in https://developercommunity.visualstudio.com/t/Visual-Studio-2022:-High-CPU-usage-by-Se/10378039
sonar-dotnet/analyzers/src/SonarAnalyzer.Common/Extensions/AnalyzerOptionsExtensions.cs
Line 37 in ab9c515
The text was updated successfully, but these errors were encountered: