aboutsummaryrefslogtreecommitdiffstats
path: root/g10/decrypt-data.c
diff options
context:
space:
mode:
authorJussi Kivilinna <[email protected]>2022-02-13 13:13:28 +0000
committerJussi Kivilinna <[email protected]>2022-03-08 18:00:31 +0000
commit6c95d52a22a75d0585ff6598e3ca539e21253c82 (patch)
tree6ec3bd8ed848a8235bd9ea7f1e5c6552b404ccb7 /g10/decrypt-data.c
parentg10/plaintext: disable estream buffering in binary mode (diff)
downloadgnupg-6c95d52a22a75d0585ff6598e3ca539e21253c82.tar.gz
gnupg-6c95d52a22a75d0585ff6598e3ca539e21253c82.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]>
Diffstat (limited to 'g10/decrypt-data.c')
-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 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 ();