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
{{ message }}
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
I suggest using SmallVec(smallvec crate) instead of a regular Vec to improve performance, by having a SmallVec allocate primarily on the stack and the heap is secondary.
Of course, it doesn't make sense to blindly replace something like that, but you could analyze this with benchmarks to see where a SmallVec would make sense.
I suggest using
SmallVec
(smallvec
crate) instead of a regular Vec to improve performance, by having a SmallVec allocate primarily on the stack and the heap is secondary.Where this could be useful
rustfix/src/lib.rs
Lines 28 to 29 in ae9b645
rustfix/src/lib.rs
Lines 65 to 66 in ae9b645
rustfix/src/lib.rs
Line 72 in ae9b645
rustfix/src/replace.rs
Lines 33 to 34 in ae9b645
rustfix/src/lib.rs
Line 107 in ae9b645
rustfix/src/lib.rs
Line 131 in ae9b645
rustfix/src/lib.rs
Line 191 in ae9b645
rustfix/src/replace.rs
Line 163 in ae9b645
Of course, it doesn't make sense to blindly replace something like that, but you could analyze this with benchmarks to see where a SmallVec would make sense.
Additional/useful resources
The text was updated successfully, but these errors were encountered: