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

Atomics instead of Mutex #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ohler55
Copy link

@ohler55 ohler55 commented Jun 29, 2018

By using atomics instead of a mutex the benchmark took overhead is decreased a little. I saw slightly better results using atomics. The difference may have been within statistical errors though. The first attempt with the change was 15% faster but subsequence runs were similar to with mutex. Anyway, fewer lines of code if you care.

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