mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
d29aa61286
The string object was reallocating memory with every concatenation which is not very efficient. This is especially true for JSON rendering which does a lot of concatenations. Instead allocate a pool of extra memory on the first concatenation (50% of size) to be used for future concatenations and reallocate when needed. Also add a 1GB size limit to ensure that there are no overflows. |
||
---|---|---|
.. | ||
dtd | ||
coding.xml | ||
documentation.xml | ||
index.xml | ||
reference.xml | ||
release.xml | ||
test.xml | ||
user-guide.xml |