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

Remove Mutex from settings #1321

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Remove Mutex from settings #1321

merged 1 commit into from
Oct 20, 2020

Conversation

porcuquine
Copy link
Collaborator

@porcuquine porcuquine commented Oct 19, 2020

Settings don't need to be protected by a Mutex. Apart from being unnecessary, this also led to a recent difficult-to-debug problem when the Mutex was mistakenly held too long in a draft of #1305. (This forced independent threads to work sequentially, eliminating the benefits of parallelism.) We should avoid making it easy to accidentally introduce such performance degradations, especially since they could go unnoticed if not specifically being looked for.

@porcuquine porcuquine changed the title Settings no mutex Remove Mutex from settings Oct 19, 2020
@porcuquine porcuquine merged commit f776e5d into master Oct 20, 2020
@porcuquine porcuquine deleted the settings-no-mutex branch October 20, 2020 21:07
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.

3 participants