aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJussi Kivilinna <[email protected]>2022-02-13 13:13:28 +0000
committerWerner Koch <[email protected]>2022-08-29 10:12:31 +0000
commite92812a4752e56977286f96f7b5064db1e22936d (patch)
tree3b9389fae4c7da9585a8e3774dd1f8b5e59b13df
parentPost release updates (diff)
downloadgnupg-e92812a4752e56977286f96f7b5064db1e22936d.tar.gz
gnupg-e92812a4752e56977286f96f7b5064db1e22936d.zip
g10/decrypt-data: disable output estream buffering to reduce overhead
* g10/decrypt-data.c (decrypt_data): Disable estream buffering for output file. -- Here estream is filled with iobuf_copy which already uses large buffers so additional buffering in estream was just adding memory copy overhead. GnuPG-bug-id: T5828 Signed-off-by: Jussi Kivilinna <[email protected]>
-rw-r--r--g10/decrypt-data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/decrypt-data.c b/g10/decrypt-data.c
index f9fc1d2c7..07f644512 100644
--- a/g10/decrypt-data.c
+++ b/g10/decrypt-data.c
@@ -492,6 +492,8 @@ decrypt_data (ctrl_t ctrl, void *procctx, PKT_encrypted *ed, DEK *dek,
iobuf_t output = iobuf_esopen (fp, "w", 0);
armor_filter_context_t *afx = NULL;
+ es_setbuf (fp, NULL);
+
if (opt.armor)
{
afx = new_armor_context ();