Click here to Skip to main content
13,147,956 members (87,630 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 |
Web02 | 2.8.170915.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid