-
Notifications
You must be signed in to change notification settings - Fork 145
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
SmallVecDeque — small vector optimization for a ring buffer #226
Comments
I think so. There are often times when we want a deque that only contains 1 or 2 elems for the most time. |
Similar to issue #220, I think I would prefer to see this as a separate crate, built on top of the |
Assuming
It might be worth experimenting with an entirely different ring-buffer algorithm for |
Vec
andVecDeque
are similar in that they both use the same allocation method; they just use the allocation differently. WithMaybeUninit<T::Item>
and some additional ring buffer management, implementing aSmallVecDeque
should be pretty simple.The text was updated successfully, but these errors were encountered: