aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine-http.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-31 17:16:46 +0000
committerJustus Winter <[email protected]>2017-01-31 17:49:27 +0000
commitb85d509a8f5c2e6200b8051ca1593c019abce90b (patch)
tree9b8bb6425d2bace4361f420fba78c35452c5d737 /dirmngr/ks-engine-http.c
parentgpgscm: Fix build with list environments. (diff)
downloadgnupg-b85d509a8f5c2e6200b8051ca1593c019abce90b.tar.gz
gnupg-b85d509a8f5c2e6200b8051ca1593c019abce90b.zip
gpgscm: Optimize environment lookups and insertions.
* tests/gpgscm/scheme.c (pointercmp): New function. (new_slot_spec_in_env): Add and use slot for insertions. (find_slot_spec_in_env): New variant of 'find_slot_in_env' that returns the slot on failures. (find_slot_in_env): Express using the new function. (new_slot_in_env): Update callsite. (opexe_0): Optimize lookup-or-insert. (opexe_1): Likewise. (scheme_define): Likewise. -- Optimize environment lookups by keeping the lists in the hash table or the list sorted. Optimize the insertions by passing the slot computed by the lookup to the insertion. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'dirmngr/ks-engine-http.c')
0 files changed, 0 insertions, 0 deletions