Diffusion GnuPG eb00a14f6d2d

gpg: Improve import slowness.

Authored by gniibe on Jul 10 2019, 8:42 AM.

Description

gpg: Improve import slowness.

* g10/import.c (read_block): Avoid O(N^2) append.
(sec_to_pub_keyblock): Likewise.

Cherry-picking the master commit of:
33c17a8008c3ba3bb740069f9f97c7467f156b54

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>