Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "perf(mux) use RWMutex" #219

Merged
merged 1 commit into from
Oct 28, 2014
Merged

Conversation

btc
Copy link
Contributor

@btc btc commented Oct 28, 2014

Reverts #218

@whyrusleeping points out

RWMutexes Standard lock operation takes twice as long as a normal mutex. The only proper use case for it is frequent reads with infrequent writes, GetBandwidth will be called rather infrequently.

@btc btc added the status/in-progress In progress label Oct 28, 2014
btc pushed a commit that referenced this pull request Oct 28, 2014
@btc btc merged commit e8ec8ce into master Oct 28, 2014
@btc btc removed the status/in-progress In progress label Oct 28, 2014
@btc btc mentioned this pull request Oct 28, 2014
@btc btc deleted the revert-218-fix/2014-10-29-mux-rwmutex branch October 28, 2014 04:57
@btc btc restored the revert-218-fix/2014-10-29-mux-rwmutex branch October 28, 2014 09:34
@btc btc deleted the revert-218-fix/2014-10-29-mux-rwmutex branch October 28, 2014 09:34
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant