diff options
author | Jeff King <peff@peff.net> | 2020-06-23 11:24:58 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-23 19:56:26 -0700 |
commit | 55b01456a95ac8d92b04d58b874459f3bf70ad2c (patch) | |
tree | e221ec694686b857e44b038d971568f4af25dd62 /contrib/subtree/git-subtree.sh | |
parent | fast-export: stop storing lengths in anonymized hashmaps (diff) | |
download | tgif-55b01456a95ac8d92b04d58b874459f3bf70ad2c.tar.xz |
fast-export: use a flex array to store anonymized entries
Now that we're using a separate keydata struct for hash lookups, we have
more flexibility in how we allocate anonymized_entry structs. Let's push
the "orig" key into a flex member within the struct. That should save us
a few bytes of memory per entry (a pointer plus any malloc overhead),
and may make lookups a little faster (since it's one less pointer to
chase in the comparison function).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree/git-subtree.sh')
0 files changed, 0 insertions, 0 deletions