Skip to content

Remove unnecessary comparer allocations from NUnitEqualityComparer#4076

Merged
mikkelbu merged 2 commits into
nunit:masterfrom
manfred-brands:equity-comparer-allocations
Mar 22, 2022
Merged

Remove unnecessary comparer allocations from NUnitEqualityComparer#4076
mikkelbu merged 2 commits into
nunit:masterfrom
manfred-brands:equity-comparer-allocations

Conversation

@manfred-brands

Copy link
Copy Markdown
Member

Fixes #4075

…tances.

Drop IChainComparer, convert Comparer classes to static

# Conflicts:
#	src/NUnitFramework/framework/Constraints/Comparers/IChainComparer.cs
#	src/NUnitFramework/framework/Constraints/NUnitEqualityComparer.cs

@mikkelbu mikkelbu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me (and I think I were the one that introduced the allocations).

@mikkelbu mikkelbu merged commit 874503f into nunit:master Mar 22, 2022
@manfred-brands manfred-brands deleted the equity-comparer-allocations branch March 23, 2022 01:12
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.

Remove unnecessary allocations in NUnitEqualityComparer

2 participants