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

Question about DenseMapSIMD.Emplace(TKey key, TValue value) #14

Closed miroslavp closed 1 year ago

miroslavp commented 1 year ago

According to your documentation, Emplace method should return false if the key already exists https://github.com/Wsm2110/Faster.Map/blob/7c076563c31db5aedb3d832d3b9362ca77dab01d/src/DenseMapSIMD.cs#L211-L218 Don't we check for the key existence here? https://github.com/Wsm2110/Faster.Map/blob/7c076563c31db5aedb3d832d3b9362ca77dab01d/src/DenseMapSIMD.cs#L255-L258

Wsm2110 commented 1 year ago

should return false indeed 👍