From f4f1092f1de9ec8bbe234a30d42b4202e8a12f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 3 Jun 2022 19:28:02 +0000 Subject: [PATCH] verify: increase IOBUF size to 64 KiB The old value of 8192 seems to be conservative. By increasing it we can make better use of the available I/O bandwidth. --- repos/ports/ports/gnupg.hash | 2 +- repos/ports/src/app/verify/patches/verify.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/repos/ports/ports/gnupg.hash b/repos/ports/ports/gnupg.hash index f9aac8e89b..2a2b07510b 100644 --- a/repos/ports/ports/gnupg.hash +++ b/repos/ports/ports/gnupg.hash @@ -1 +1 @@ -c784d4658f87704035f17c0e182aa0e9de931acf +8357d87e27946e6148aec9bc472ffacd0b98cdf8 diff --git a/repos/ports/src/app/verify/patches/verify.patch b/repos/ports/src/app/verify/patches/verify.patch index e03ad3b76a..3ea4004198 100644 --- a/repos/ports/src/app/verify/patches/verify.patch +++ b/repos/ports/src/app/verify/patches/verify.patch @@ -9,3 +9,14 @@ } leave: +--- src/app/gnupg/common/iobuf.c.orig ++++ src/app/gnupg/common/iobuf.c +@@ -62,7 +62,7 @@ + /* The size of the internal buffers. + NOTE: If you change this value you MUST also adjust the regression + test "armored_key_8192" in armor.test! */ +-#define IOBUF_BUFFER_SIZE 8192 ++#define IOBUF_BUFFER_SIZE 65536 + + /* To avoid a potential DoS with compression packets we better limit + the number of filters in a chain. */