summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-05-21 20:38:18 +0200
committerWerner Koch <wk@gnupg.org>2016-05-21 20:38:18 +0200
commit78bb08425af5b1edb7f3ef0119013529b3a9e4ba (patch)
tree775ad7d51c571c2aa0fa17b83f6a9c729dc4c042 /g10/build-packet.c
parentgpg: Avoid name spaces clash with future sqlite versions. (diff)
downloadgnupg2-78bb08425af5b1edb7f3ef0119013529b3a9e4ba.tar.xz
gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'g10/build-packet.c')
0 files changed, 0 insertions, 0 deletions