jonhoo / jonhoo/drwmutex

Applications should not have to deal with throttling calls to `RLocker()`

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
356
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Currently, each call to `DRWMutex.RLocker()` causes the fairly expensive `CPUID` instruction (at least on some architechtures) to be called. The benchmarking tool avoids this to some extent by caching the lock across multiple iterations on the lock, but applications should not have to implement this logic themselves. Ideally, the drwmutex should handle this itself, though I'm not sure how it might do so... Suggestions are welcome.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.