diff options
author | Jeff King <peff@peff.net> | 2020-06-23 11:24:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-23 19:56:26 -0700 |
commit | a0f65641dfb67ffa94f1e33ded2cbab8d77d53a5 (patch) | |
tree | 7a7ec96b58f2c76ab8c2cd91ec457c61adfde191 /contrib/buildsystems/engine.pl | |
parent | fast-export: tighten anonymize_mem() interface to handle only strings (diff) | |
download | tgif-a0f65641dfb67ffa94f1e33ded2cbab8d77d53a5.tar.xz |
fast-export: stop storing lengths in anonymized hashmaps
Now that the anonymize_str() interface is restricted to NUL-terminated
strings, there's no need for us to keep track of the length of each
entry in the hashmap. This simplifies the code and saves a bit of
memory.
Note that we do still need to compare the stored results to partial
strings passed in by the callers. We can do that by using hashmap's
keydata feature to get the ptr/len pair into the comparison function,
and then using strncmp().
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/buildsystems/engine.pl')
0 files changed, 0 insertions, 0 deletions