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

Implement a cache for ReferenceAssemblies instances #1176

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

sharwell
Copy link
Member

Avoids the need to manually keep track of identical instances across test suites.

Supersedes #1160

Avoids the need to manually keep track of identical instances across
test suites.

public bool Equals(ReferenceAssemblies? other)
{
return other is not null

Choose a reason for hiding this comment

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

return other is not null

maybe a reference equality check preceeding all the other work?

Choose a reason for hiding this comment

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

oh, it looks like the GetOrAddReferenceAssemblies call takes in a newly constructed one, so wouldn't really have any benefit

Copy link

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@sharwell sharwell merged commit bcd561e into dotnet:main Aug 14, 2024
9 checks passed
@sharwell sharwell deleted the reference-cache branch August 14, 2024 20:06
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.

2 participants