Suggest sync.Mutex instead of sync.RWMutex
quasilyte opened this issue · 0 comments
quasilyte commented
The easiest case when RLock and RUnlock methods are not used, so we can use a simpler mutex as a replacement.
A harder case could involve the comparison of write+read loads. If reads are not much more frequent than writes, a sync.Mutex
could be better than sync.RWMutex
.