Skip to content

Commit a2a9a81

Browse files
Remove repeat length check from SpanByte.Equals
1 parent fb52a2b commit a2a9a81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/storage/Tsavorite/cs/src/core/VarLen/SpanByteComparer.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public static unsafe long StaticGetHashCode64(ref SpanByte spanByte)
4747
[MethodImpl(MethodImplOptions.AggressiveInlining)]
4848
public static unsafe bool StaticEquals(ref SpanByte k1, ref SpanByte k2)
4949
{
50-
return k1.AsReadOnlySpanWithMetadata().SequenceEqual(k2.AsReadOnlySpanWithMetadata())
51-
&& (k1.MetadataSize == k2.MetadataSize);
50+
return k1.AsReadOnlySpanWithMetadata().SequenceEqual(k2.AsReadOnlySpanWithMetadata());
5251
}
5352
}
5453
}

0 commit comments

Comments
 (0)