common: Reduce buffer size.

* common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.

--
Change suggested by Werner based on the observation that other buffers
are of a similar size.

Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-02-23 22:39:58 +01:00
parent 14d27b2cad
commit 75861b663b
1 changed files with 2 additions and 2 deletions

View File

@ -2227,8 +2227,8 @@ size_t
iobuf_copy (iobuf_t dest, iobuf_t source)
{
char *temp;
/* Use a 1 MB buffer. */
const size_t temp_size = 1024 * 1024;
/* Use a 32 KB buffer. */
const size_t temp_size = 32 * 1024;
size_t nread;
size_t nwrote = 0;