Click here to Skip to main content
12,560,765 members (51,621 online)

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.

Advertise | Privacy | Mobile
Web02 | 2.8.161026.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid