From 75861b663bbb37214143c2ff7b1b4d1d10ba2657 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 23 Feb 2016 22:39:58 +0100 Subject: [PATCH] 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 --- common/iobuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/iobuf.c b/common/iobuf.c index 9816d5590..bd1c30fae 100644 --- a/common/iobuf.c +++ b/common/iobuf.c @@ -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;