You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
appcypher
changed the title
Leverage tinyvec to Optimize Stack-like Structures in the Codebase
Leverage tinyvec to Optimize Certain Collections in the Codebase
Oct 21, 2022
appcypher
changed the title
Leverage tinyvec to Optimize Certain Collections in the Codebase
Optimize Collections with tinyvecMar 31, 2023
@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: