Skip to content

Replace unnecessary atomics with non-atomic operations#94

Merged
notgull merged 2 commits intosmol-rs:masterfrom
james7132:excess-atomics
Feb 17, 2024
Merged

Replace unnecessary atomics with non-atomic operations#94
notgull merged 2 commits intosmol-rs:masterfrom
james7132:excess-atomics

Conversation

@james7132
Copy link
Copy Markdown
Contributor

@james7132 james7132 commented Feb 16, 2024

There's a few atomic variables that really don't need to be, since both Ticker and Runner can be used with exclusive mutable local access.

I don't think this will result in performance improvements per se, but this should at least be more readable.

Copy link
Copy Markdown
Contributor

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@notgull notgull merged commit 7ffdf5b into smol-rs:master Feb 17, 2024
@notgull notgull mentioned this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants