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
SmallVec<[T;N]> is a type that stores can store up to N values inline before spilling to the heap, but otherwise behaves exactly the same as Vec. We should use SmallVec in types that there will be many copies of, for example Unit, to avoid extra heap allocations.
The text was updated successfully, but these errors were encountered:
This is a minor perf thing:
SmallVec<[T;N]> is a type that stores can store up to N values inline before spilling to the heap, but otherwise behaves exactly the same as
Vec
. We should use SmallVec in types that there will be many copies of, for exampleUnit
, to avoid extra heap allocations.The text was updated successfully, but these errors were encountered: