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.
Showing
想要评论请 注册 或 登录
We do a conservative estimate of the number of characters, but still, this limits the number of buffer reallocs to a small constant.