Skip to content

Conversation

richard-uk1
Copy link

I've been using the ringbuffer with its iterators and I can't get the computer to optimize copying, so I made some methods that do it manually. They need examples but I want to check you're interested first.

@mitchmindtree
Copy link
Member

Certainly interested, thanks for the PR! Let me know when the examples are in and you'd like me to take a closer look 👍

@richard-uk1
Copy link
Author

After experimentation using copy_from_slice doesn't seem slower than ptr::copy_nonoverlapping and doesn't need unsafe, so I'm using that.

Also add examples and remove unsafe.
@richard-uk1
Copy link
Author

Ready for review.

@richard-uk1
Copy link
Author

friendly bump

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