diff options
author | Werner Koch <[email protected]> | 2016-05-21 18:38:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-05-21 18:38:18 +0000 |
commit | 78bb08425af5b1edb7f3ef0119013529b3a9e4ba (patch) | |
tree | 775ad7d51c571c2aa0fa17b83f6a9c729dc4c042 /g10/export.c | |
parent | gpg: Avoid name spaces clash with future sqlite versions. (diff) | |
download | gnupg-78bb08425af5b1edb7f3ef0119013529b3a9e4ba.tar.gz gnupg-78bb08425af5b1edb7f3ef0119013529b3a9e4ba.zip |
gpg: Speed up key listing in Tofu mode.
* g10/tofu.c (get_trust): Add arg PK. Uses this instead of a an extra
lookup of the public key by fingerrpint.
(tofu_register): Pass PK to get_trust.
(tofu_get_validity): Ditto.
*g10/tofu.c (tofu_register): Remove unused FINGERPRINT_PP.
--
With my test keybox I see a speedup of 10 times (33s to 3.1s). The
reason for this was the extra key lookup which I hacked in at some
point to make the extraction of a keyid correct also for non v4 keys.
However our caller already has the public key and thus can easily pass
it to get_trust along with the fingerprint.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/export.c')
0 files changed, 0 insertions, 0 deletions