Skip to content

Implement a cache for ReferenceAssemblies instances#1176

Merged
sharwell merged 1 commit intodotnet:mainfrom
sharwell:reference-cache
Aug 14, 2024
Merged

Implement a cache for ReferenceAssemblies instances#1176
sharwell merged 1 commit intodotnet:mainfrom
sharwell:reference-cache

Conversation

@sharwell
Copy link
Copy Markdown
Contributor

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
Copy link
Copy Markdown

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?

Copy link
Copy Markdown

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
Copy Markdown

@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
@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