From e92812a4752e56977286f96f7b5064db1e22936d Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Sun, 13 Feb 2022 15:13:28 +0200 Subject: [PATCH] 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 --- g10/decrypt-data.c | 2 ++ 1 file changed, 2 insertions(+) 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 ();