4 ms·
It doesn't matter if you're reading or writing, if there's a potential conflict you need to lock, or you need some complex and probably buggy "lock-free" data s
by incrudible 5y ago
It doesn't matter if you're reading or writing, if there's a potential conflict you need to lock, or you need some complex and probably buggy "lock-free" data structure. The complexity and memory overhead of a concurrent GC just goes on top of that.
- quietbritishjim 5y agoLocking an uncontended lock is cheap (at least compared to a contended one) so actual conflict does matter more than potential conflict.