27 Sep
2017
27 Sep
'17
5:03 a.m.
On 26 September 2017 at 20:14, Thorsten Ottosen via Boost < boost@lists.boost.org> wrote:
In this connection,
https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
may be relevant. It argues for a 1.5 growth factor.
Actually, no need to look at something like FBVector, the VS2017 STL std::vector implementation uses the following growth policy: capacity += capacity / 2; I'm not sure how that used to be, on the MSDN blog (not that long ago) it was noted that an overhaul of std::vector was implemented. I think I remember it used to duplicate before (but cannot verify that anymore). degski -- "*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend, Schmerzen aus Schwäche stillend.*" - Novalis 1798