Click here to Skip to main content
15,917,645 members

Comments by john morrison leon (Top 1 by date)

john morrison leon 6-Apr-16 15:27pm View    
"The vector size will increase by a factor (probably between 1.5 and 2)". I have used this approach in my own code. A factor of 1.05 to 1.10 produces a mildly exponential growth rate that is quite practical. I didn't know that this was built in to std::vector.

The performance bottleneck has got to be in code that you can't see. The vector and its allocations is the firtst place I would look.