| commit | 31b2a651d5c60bd595b7253e1209cf4e54a00011 | [log] [tgz] |
|---|---|---|
| author | Ivan Zhakov <ivan@apache.org> | Wed Oct 07 07:57:05 2015 +0000 |
| committer | Ivan Zhakov <ivan@apache.org> | Wed Oct 07 07:57:05 2015 +0000 |
| tree | 6d496f23f50b414b358aa0e187e7f123a00d2f72 | |
| parent | a90649ebf787ac9696e02ea575676e3d59afbc76 [diff] |
Slightly optimize svn_stringbuf_from_stream() to avoid allocating twice more memory and unnecessary memcpy() when LEN_HINT is equal to final stringbuf length. * subversion/libsvn_subr/stream.c (svn_stringbuf_from_stream): Always preallocate LEN_HINT + MIN_READ_SIZE bytes to be able perform final read without stringbuf reallocation. git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1707196 13f79535-47bb-0310-9956-ffa450edef68