Avoid locking in Map.Range
puzpuzpuz opened this issue · 0 comments
puzpuzpuz commented
ATM Map.Range iterates over the map by acquiring bucket locks sequentially and copying their contents in an intermediate slice. Locking could be avoided via reading each bucket's contents with atomic snapshots as in the Get operation.