|
|
|
|
|
by nyanpasu64
1657 days ago
|
|
Sharing mutable data without a mutex (which suffers from unbounded contention) is hard. Approaches that work include updating persistent data structures and sharing the new copy, or sharing diff objects over a lock-free queue. |
|
The point is neither copying the whole structure nor diffs are as easy as mutex + inner mutation.