-
Philipp A. Hartmann authored
As mentioned by @kosta-github in http://git.io/0gkYSg, the currently used growth factor of 2 is suboptimal for memory performance. An extensive discussion can be found at [1]. This patch reduces the array/object capacity growth factor to 1.5, as many C++ implementations have chosen to use. In order to avoid floating-point arithmetics for computing the new capacity, I did not add any customization parameter for the factor and used a shift+add instead. [1] https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
f4f43280
Name |
Last commit
|
Last update |
---|---|---|
bin | ||
build | ||
doc | ||
example | ||
include/rapidjson | ||
test | ||
thirdparty | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
license.txt | ||
readme.md |