Skip to content

Atomics instead of Mutex#57

Open
ohler55 wants to merge 2 commits intohashrocket:masterfrom
ohler55:master
Open

Atomics instead of Mutex#57
ohler55 wants to merge 2 commits intohashrocket:masterfrom
ohler55:master

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