Skip to content

Substantial perf improvement for VSTHRD010 analyzer - #712

Merged
Andrew Arnott (AArnott) merged 1 commit into
microsoft:v16.8from
AArnott:fix701
Oct 30, 2020
Merged

Substantial perf improvement for VSTHRD010 analyzer#712
Andrew Arnott (AArnott) merged 1 commit into
microsoft:v16.8from
AArnott:fix701

Conversation

@AArnott

Copy link
Copy Markdown
Member

Switched GetSymbolInfo to IOperation in VSTHRD010.

In one simple repro, a build that took 46 seconds down to just over 1 second.

Fixes #701: a massive perf issue with VSTHRD010

Fixes microsoft#701: a massive perf issue with VSTHRD010
}

private static void AddToCallerCalleeMap(SyntaxNodeAnalysisContext context, Dictionary<IMethodSymbol, List<CallInfo>> callerToCalleeMap)
private static Dictionary<IMethodSymbol, List<CallInfo>> CreateCalleeToCallerMap(Dictionary<IMethodSymbol, List<CallInfo>> callerToCalleeMap)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewers tip: this method didn't change. It just got moved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants