// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System.Collections.Generic; namespace FASTER.core { /// /// Low-performance FASTER equality comparer wrapper around EqualityComparer.Default /// /// internal sealed class FasterEqualityComparer : IFasterEqualityComparer { public static readonly FasterEqualityComparer Default = new FasterEqualityComparer(); private static readonly EqualityComparer DefaultEC = EqualityComparer.Default; public bool Equals(ref T k1, ref T k2) { return DefaultEC.Equals(k1, k2); } public long GetHashCode64(ref T k) { return Utility.GetHashCode(DefaultEC.GetHashCode(k)); } } }