Closed Stebalien closed 7 years ago
@whyrusleeping I can also go ahead and implement an RCU now if you're concerned about speed.
Acquiring ReadLock if there are no contesting writes is only matter of incrementing one atomic int
so I don't think performance will suffer in this case. https://golang.org/src/sync/rwmutex.go
An atomic load should be an order of magnitude faster than an atomic add but that probably makes no difference in the grand scheme of things.
ship it :ship: :sheep: