Showing content from https://github.com/SonarSource/sonar-dotnet/issues/7439 below:
Avoid capturing and delegate allocations in SonarAnalysisContextBase · Issue #7439 · SonarSource/sonar-dotnet · GitHub
Skip to content Navigation Menu
Saved searches Use saved searches to filter your results more quickly
Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Additional navigation options
Avoid capturing and delegate allocations in SonarAnalysisContextBase #7439
Description
-
333MB in IsExcluded
&& !FileInclusionCache.GetValue(Compilation, _ => new()).GetOrAdd(filePath, _ => sonarLintXml.IsFileIncluded(filePath, IsTestProject()));
-
935MB in AdditionalFile
options.AdditionalFiles.FirstOrDefault(x => x.Path is not null && Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
-
229MB in IsUnchanged
UnchangedFilesCache.GetValue(Compilation, _ => CreateUnchangedFilesHashSet()).Contains(tree.FilePath);
-
191MB in IsGenerated
return cache.GetOrAdd(tree, generatedCodeRecognizer.IsGenerated);
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4