From ae3e8ae8c4837e362f32d1e381b5486bf2e20ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Sat, 18 Apr 2026 23:20:36 +0200 Subject: [PATCH] Changed stupid mistake in key strategies now strategies faster. go wroom. --- PersistentMap/KeyStrategies.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PersistentMap/KeyStrategies.cs b/PersistentMap/KeyStrategies.cs index 1a437a8..2efb4ac 100644 --- a/PersistentMap/KeyStrategies.cs +++ b/PersistentMap/KeyStrategies.cs @@ -85,6 +85,8 @@ public struct UnicodeStrategy : IKeyStrategy // Essential for the < and > operators to work correctly. return packed ^ unchecked((long)0x8080808080808080); } + + public bool UsesPrefixes => true; } public struct IntStrategy : IKeyStrategy @@ -101,6 +103,10 @@ public struct IntStrategy : IKeyStrategy // though standard int shifting usually works fine for direct mapping. return (long)key << 32; } + + public bool UsesPrefixes => true; + + public bool IsLossless => true; } public struct DoubleStrategy : IKeyStrategy