From 6cfbcb6b95288f5ee93879afb2fe7d5a1de81a15 Mon Sep 17 00:00:00 2001 From: Alex Peck Date: Sun, 12 Jan 2025 17:50:48 -0800 Subject: [PATCH 1/3] bump 2.5.3 --- BitFaster.Caching/BitFaster.Caching.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BitFaster.Caching/BitFaster.Caching.csproj b/BitFaster.Caching/BitFaster.Caching.csproj index 4860e2e0..55f0e8dc 100644 --- a/BitFaster.Caching/BitFaster.Caching.csproj +++ b/BitFaster.Caching/BitFaster.Caching.csproj @@ -10,7 +10,7 @@ LICENSE ReadMe.md true - 2.5.2 + 2.5.3 Copyright © Alex Peck $([System.DateTime]::Now.ToString(yyyy)) https://github.com/bitfaster/BitFaster.Caching @@ -22,8 +22,8 @@ True true snupkg - 2.5.2.0 - 2.5.2.0 + 2.5.3.0 + 2.5.3.0 true True true From ed5dd34cfad725c738fec5079a14c18ce01d0a55 Mon Sep 17 00:00:00 2001 From: Alex Peck Date: Sun, 12 Jan 2025 17:56:51 -0800 Subject: [PATCH 2/3] rem unsafe --- BitFaster.Caching/Lfu/CmSketchCore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BitFaster.Caching/Lfu/CmSketchCore.cs b/BitFaster.Caching/Lfu/CmSketchCore.cs index 9764c51b..f27c37d6 100644 --- a/BitFaster.Caching/Lfu/CmSketchCore.cs +++ b/BitFaster.Caching/Lfu/CmSketchCore.cs @@ -168,7 +168,7 @@ private void EnsureCapacity(long maximumSize) size = 0; } - private unsafe int EstimateFrequencyStd(T value) + private int EstimateFrequencyStd(T value) { int blockHash = Spread(comparer.GetHashCode(value)); int counterHash = Rehash(blockHash); @@ -198,7 +198,7 @@ private unsafe int EstimateFrequencyStd(T value) return Math.Min(Math.Min(count0, count1), Math.Min(count2, count3)); } - private unsafe void IncrementStd(T value) + private void IncrementStd(T value) { int blockHash = Spread(comparer.GetHashCode(value)); int counterHash = Rehash(blockHash); From 2d936d90385f1549827476033ba1290ea2803d4a Mon Sep 17 00:00:00 2001 From: Alex Peck Date: Sun, 12 Jan 2025 17:58:01 -0800 Subject: [PATCH 3/3] undo version change --- BitFaster.Caching/BitFaster.Caching.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BitFaster.Caching/BitFaster.Caching.csproj b/BitFaster.Caching/BitFaster.Caching.csproj index 55f0e8dc..4860e2e0 100644 --- a/BitFaster.Caching/BitFaster.Caching.csproj +++ b/BitFaster.Caching/BitFaster.Caching.csproj @@ -10,7 +10,7 @@ LICENSE ReadMe.md true - 2.5.3 + 2.5.2 Copyright © Alex Peck $([System.DateTime]::Now.ToString(yyyy)) https://github.com/bitfaster/BitFaster.Caching @@ -22,8 +22,8 @@ True true snupkg - 2.5.3.0 - 2.5.3.0 + 2.5.2.0 + 2.5.2.0 true True true