aboutsummaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-09-30 16:22:25 +0000
committerWerner Koch <[email protected]>2024-09-30 16:22:25 +0000
commitce0580a599ec759ec6e21378193a995b55fce6cf (patch)
tree0525c1c6f12662a7745ceda7c21aaff0c9c55831 /sm/call-agent.c
parentsm: Optmize clearing of the ephemeral flag. (diff)
downloadgnupg-ce0580a599ec759ec6e21378193a995b55fce6cf.tar.gz
gnupg-ce0580a599ec759ec6e21378193a995b55fce6cf.zip
gpgsm: Use a cache to speed up parent certificate lookup.
* sm/gpgsm.h (COMPAT_NO_CHAIN_CACHE): New. (struct cert_cache_item_s, cert_cache_item_t): New. (struct server_control_s): Add parent_cert_cache. * sm/gpgsm.c (compatibility_flags): Add "no-chain-cache". (parent_cache_stats): New. (gpgsm_exit): Print the stats with --debug=memstat. (gpgsm_deinit_default_ctrl): Release the cache. * sm/certchain.c (gpgsm_walk_cert_chain): Cache the certificates. (do_validate_chain): Ditto. -- This gives another boost of 30% (from 6.5 to 4.0 seconds in the test environment with ~1000 certs). do_validate_chain actually brings us the speedup becuase the gpgsm_walk_cert_chain is not used during a key listing. For the latter we actually cache all certificates because that was easier. GnuPG-bug-id: 7308
Diffstat (limited to 'sm/call-agent.c')
0 files changed, 0 insertions, 0 deletions