1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00

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 <jussi.kivilinna@iki.fi>
This commit is contained in:
Jussi Kivilinna 2022-02-13 15:13:28 +02:00 committed by Werner Koch
parent afa64aceab
commit e92812a475
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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 ();