aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dns-stuff.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-31 12:22:40 +0000
committerJustus Winter <[email protected]>2017-01-31 17:49:27 +0000
commitcea6d114b60deaecfbc2eb1aedbdfb7e6700922f (patch)
tree109ec3dcdd7963d0dd5d22eb0e8e99fb4dc89919 /dirmngr/dns-stuff.c
parentgpgscm: Fix build with object list. (diff)
downloadgnupg-cea6d114b60deaecfbc2eb1aedbdfb7e6700922f.tar.gz
gnupg-cea6d114b60deaecfbc2eb1aedbdfb7e6700922f.zip
gpgscm: Optimize symbol lookups and insertions.
* tests/gpgscm/scheme.c (oblist_find_by_name): Keep the list of symbols sorted, return the slot where a new symbol must be inserted on lookup failures. (oblist_add_by_name): Add the new symbol at the given slot. (mk_symbol): Adjust callsite. (gensym): Likewise. (assign_syntax): Likewise. -- Optimize symbol lookups by keeping the lists in the hash table (or the list if compiled with USE_OBJECT_LIST) sorted by the symbol names. 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/dns-stuff.c')
0 files changed, 0 insertions, 0 deletions