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
The Execute method in SonarAnalysisContext class is doing checks multiple time per SyntaxTree.
Caching the results of those checks when registering for the SyntaxNodeAction (which is the one we use the most) will improve performance in time and allocations.
As a first step, this caching will happen only in SonarCompilationStartContext.
sebastien-marichal
changed the title
Cache ShouldAnalyzeTree results for better performance
Cache RegisterNodeAction checks result per SyntaxTree
Nov 29, 2023
The Execute method in SonarAnalysisContext class is doing checks multiple time per SyntaxTree.
Caching the results of those checks when registering for the SyntaxNodeAction (which is the one we use the most) will improve performance in time and allocations.
As a first step, this caching will happen only in SonarCompilationStartContext.
See #8414 for more details
The text was updated successfully, but these errors were encountered: