From 6c95d52a22a75d0585ff6598e3ca539e21253c82 Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Sun, 13 Feb 2022 15:13:28 +0200 Subject: 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(+) (limited to 'g10/decrypt-data.c') diff --git a/g10/decrypt-data.c b/g10/decrypt-data.c index 8140de6dd..8b48d18bf 100644 --- a/g10/decrypt-data.c +++ b/g10/decrypt-data.c @@ -484,6 +484,8 @@ decrypt_data (ctrl_t ctrl, void *procctx, PKT_encrypted *ed, DEK *dek) iobuf_t output = iobuf_esopen (fp, "w", 0, 0); armor_filter_context_t *afx = NULL; + es_setbuf (fp, NULL); + if (opt.armor) { afx = new_armor_context (); -- cgit v1.2.3