Wsm2110 / Faster.Map

Faster.Map is a high-performance, thread-safe key-value store designed to outperform the standard Dictionary and ConcurrentDictionary
MIT License
75 stars 7 forks source link

Possible bug in DenseMapSIMD.Copy(DenseMapSIMD<TKey, TValue> denseMap) #13

Closed miroslavp closed 1 year ago

miroslavp commented 1 year ago

In the Copy method below: https://github.com/Wsm2110/Faster.Map/blob/99a11197c7bf46fc975f44c9aceb91da07689373/src/DenseMapSIMD.cs#L608-L620

shouldn't this if statement check for denseMap._metadata[i] < 0 rather than _metadata[i] < 0 as it is now? https://github.com/Wsm2110/Faster.Map/blob/99a11197c7bf46fc975f44c9aceb91da07689373/src/DenseMapSIMD.cs#L612-L615

Wsm2110 commented 1 year ago

Fixed