News for hackers. Stuff that matters.
Re:Cmapv2: A high performance, concurrent map by sirgallo on Sunday June 15, 2025 @09:00PM (#44285957)
Performance comparisons are made against go sync.Map, with cmapv2 on par or sometimes exceeding is on different workloads. It is both lock-free and thread safe, using atomic operations. It also supports sharding out of the box. cmapv2 with 10m k/v pairs where keys and values are 64bytes was able to achieve 1.5m w/s and 3m r/s.
Re:Cmapv2: A high performance, concurrent map by pstuart on Tuesday June 17, 2025 @11:47AM (#44300541)
Looks interesting, it would be nice to have the performance comparisons front and center on the readme.
Re:Cmapv2: A high performance, concurrent map by sirgallo on Tuesday June 17, 2025 @02:37PM (#44302342)
sounds good, they are a bit hidden right now. also am most likely going to update the other docs.
Re:Cmapv2: A high performance, concurrent map by latchkey on Tuesday June 17, 2025 @12:55PM (#44301197)
I've been using this one for years, can you do comparisons against it?

https://github.com/cornelk/hashmap

Re:Cmapv2: A high performance, concurrent map by jzelinskie on Tuesday June 17, 2025 @02:28PM (#44302234)
Another good comparison would be against https://pkg.go.dev/github.com/puzpuzpuz/xsync/v3#Map
Re:Cmapv2: A high performance, concurrent map by sirgallo on Tuesday June 17, 2025 @02:36PM (#44302332)
definitely, I can expand my comparisons and benchmarks
Re:Cmapv2: A high performance, concurrent map by latchkey on Tuesday June 17, 2025 @03:21PM (#44302854)
Honestly, if you're better than the rest, I would suggest collaborating with the existing solutions.
Re:Cmapv2: A high performance, concurrent map by sirgallo on Tuesday June 17, 2025 @02:35PM (#44302316)
yes I can take a look, thanks for passing that along