mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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:
parent
14d27b2cad
commit
75861b663b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user