Home GnuPG
Diffusion GnuPG 144b95cc9d0f

gpg: Improve symmetric decryption speed by about 25%

Description

gpg: Improve symmetric decryption speed by about 25%

* g10/decrypt-data.c (mdc_decode_filter, decode_filter): Fatcor buffer
filling code out to ...
(fill_buffer): new.

This patch includes the master commit
d989373f1a46139ed0fbc4d4a91069b78617ad9
and
5d6c080522e1666943b75c99124fb69b985b6941

Benchmarking on our usual X220 shows for a 1.3GiB non-compressed
non-armored AES encrypted file (ECDH encrypted but the symmetric
decryption takes the majority of the time, reading from stdin writing
to /dev/null):

beforeafter
------------+-----------+-----------
real0m15.006s0m11.849s
user0m14.304s0m11.259s
sys0m0.640s0m0.537s
throughput90 MiB/s115 MiB/s
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 15 2020, 8:51 PM
Parents
rG2f39e00b6b7d: gpg: Reformat parts of decrypt-data.c
Branches
Unknown
Tags
Unknown