[git] GnuPG - branch, master, updated. gnupg-2.1.11-66-g75861b6

by Neal H. Walfield cvs at cvs.gnupg.org
Tue Feb 23 22:40:11 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  75861b663bbb37214143c2ff7b1b4d1d10ba2657 (commit)
      from  14d27b2cadf9b0bb413f2b8bad2d81c1d370c2e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 75861b663bbb37214143c2ff7b1b4d1d10ba2657
Author: Neal H. Walfield <neal at g10code.com>
Date:   Tue Feb 23 22:39:58 2016 +0100

    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 at g10code.com>

diff --git a/common/iobuf.c b/common/iobuf.c
index 9816d55..bd1c30f 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;

-----------------------------------------------------------------------

Summary of changes:
 common/iobuf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list