Comment Comment by gameswithgo You can specify the capacity on creation: Vec::with_capacity(foo)There are also alternative vector like types for different use cases, and you can roll your own. parent gameswithgo 4 years ago
There are also alternative vector like types for different use cases, and you can roll your own.