diff options
author | Jussi Kivilinna <[email protected]> | 2022-02-13 13:13:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-08-29 10:12:31 +0000 |
commit | e92812a4752e56977286f96f7b5064db1e22936d (patch) | |
tree | 3b9389fae4c7da9585a8e3774dd1f8b5e59b13df | |
parent | Post release updates (diff) | |
download | gnupg-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.c | 2 |
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 (); |