robocup-software
robocup-software copied to clipboard
Reserve space in vectors before calling push_back
As an easy optimization, in lots of places we push back into a vector without first calling reserve (even though we usually have at least a good lower bound on how many items we'll need.
For example: https://github.com/RoboJackets/robocup-software/pull/1494/files/1d6b526aaeada2dc275fe30c3e2316de4e177dd9#diff-dfa0f461b7c683261fb993e66180bc72R39
Brought up in review of #1494.