Golang, Software Performance, Concurrent Programming, Cache Coherence, Database Development.
interface { sync.RWMutex | sync.Mutex } type StripedRecord[T Lock] struct { lock T _ cpu.CacheLinePad } type StripedMutex[T Lock] struct { locks []StripedRecord[T] } func New[T Lock](numlocks uint) StripedMutex[T] { return StripedMutex[T]{ locks: make([]StripedRecord[T], numlocks), } } func (l