-
Notifications
You must be signed in to change notification settings - Fork 23
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
Optimize Collections with tinyvec
#76
Comments
appcypher
changed the title
Leverage
Leverage Oct 21, 2022
tinyvec
to Optimize Stack-like Structures in the Codebasetinyvec
to Optimize Certain Collections in the Codebase
appcypher
changed the title
Leverage
Optimize Collections with Mar 31, 2023
tinyvec
to Optimize Certain Collections in the Codebasetinyvec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@zeeshanlakhani pointed out an opportunity to use
tinyvec
for a stack structure in a review.We use working stacks and other collections in a few places that can be optimized with
tinyvec
.tinyvec
keeps the collection on the stack until the static limit is hit subsequently moving the collection to the heap. For some of these structure we know the upper bound that we are likely not to exceed allowing us to keep things mostly on the stack until we hit an exceptional case.Here are some areas in the library that can be improved:
The text was updated successfully, but these errors were encountered: