3 ms·
At worst it will make it slower, and at best it will make it faster[0]. The only way to know is to measure with an input that's representative, and this case is
by maccard 3y ago
At worst it will make it slower, and at best it will make it faster[0]. The only way to know is to measure with an input that's representative, and this case is exactly why you measure.
[0] https://stackoverflow.com/questions/48535727/why-are-c-stl-vectors-1000x-slower-when-doing-many-reserves https://stackoverflow.com/questions/48535727/why-are-c-stl-v...