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

Assembly Resolver perf improvement #1218

Merged
merged 8 commits into from
Oct 26, 2017

Conversation

Shyam-Gupta
Copy link
Member

Adding null in resolvedAssemblies dictionary for assemblies which couldn't be resolved.
It is giving ~3.1 seconds perf improvement for 10k xunit tests from vstest.console during execution.


return null;
this.resolvedAssemblies[args.Name] = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add this at line:112, because there is exit path at 126 and we should operate on resolvedAssemblies inside lock (this.resolvedAssemblies) block.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its already under lock block. As per discussion, added this statement in one catch block.


return null;
this.resolvedAssemblies[args.Name] = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add EqtTrace.IsInfoEnabled check for main flows.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@Shyam-Gupta Shyam-Gupta merged commit 78d63ef into microsoft:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants