This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Evaluate and replace Vec::new() with Vec::with_capacity() where capacity is known #55
Labels
Milestone
For times where we are creating a new Vec via
Vec::new()
, I believe there are a couple of places where we would know the capacity needed ahead of time. Swapping toVec::with_capacity()
will give a small boost as we can avoid new allocations.The text was updated successfully, but these errors were encountered: