Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

We have very complex RingBuffer implementations for the JS and Native platforms that don't actually do anything more than dramatically simpler ones because we aren't using atomic variables.

This PR simplifies them for the single threaded case. This will make this part of the code more maintainable. It should also be a little faster since we aren't doing unnecessary work and are taking advantage of the more efficient indexing implementation when the capacity is a power of two.

@adamgfraser adamgfraser merged commit 0e4b352 into zio:master Jan 27, 2021
@adamgfraser adamgfraser deleted the ringbuffer branch January 27, 2021 16:17
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.

2 participants