Rename because it is ordered

This commit is contained in:
Linus Björnstam 2026-05-07 07:44:55 +02:00
parent b5b363ae9f
commit e3cec3423b
28 changed files with 104 additions and 104 deletions

View file

@ -0,0 +1,17 @@
namespace PersistentOrderedMap;
using System.Runtime.CompilerServices;
// This is a comparable strategy that may squeeze some extra time out of value types
public readonly struct ComparableStrategy<K> : IKeyStrategy<K> where K : IComparable<K>
{
public bool UsesPrefixes => false;
public bool UseBinarySearch => true;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public long GetPrefix(K key) => 0;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public int Compare(K x, K y) => x.CompareTo(y);
}