Skip to content

Commit a714cdb

Browse files
author
Alex Peck
committed
comment
1 parent 0a9bcff commit a714cdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BitFaster.Caching/Lfu/CmSketchCore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ private unsafe int EstimateFrequencyStd(T value)
174174
int counterHash = Rehash(blockHash);
175175
int block = (blockHash & blockMask) << 3;
176176

177+
// Loop unrolling improves throughput
177178
int h0 = counterHash;
178179
int h1 = counterHash >>> 8;
179180
int h2 = counterHash >>> 16;

0 commit comments

Comments
 (0)