Commit 4e9ff1dd6ee3ea63fd91a76a91d9725a10a294a0

Behdad Esfahbod 2011-08-15T16:21:22

Pre-allocate buffers when adding string We do a conservative estimate of the number of characters, but still, this limits the number of buffer reallocs to a small constant.