Skip to content

Commit

Permalink
Removed allocation introduced by ExpressionComparer
Browse files Browse the repository at this point in the history
  • Loading branch information
YohDeadfall authored and smitpatel committed Sep 7, 2019
1 parent 6cd2b45 commit c7df045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EFCore/Query/Internal/ExpressionEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public virtual bool SequenceEquals(IEnumerable<Expression> x, IEnumerable<Expres
return x.Zip(y, (l, r) => comparer.Compare(l, r)).All(r => r);
}

private sealed class ExpressionComparer
private struct ExpressionComparer
{
private ScopedDictionary<ParameterExpression, ParameterExpression> _parameterScope;

Expand Down

0 comments on commit c7df045

Please sign in to comment.