diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2017-03-22 17:14:20 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-22 13:41:41 -0700 |
commit | 16f9b4cdd31de2b8185c5c717efa6d28c56b3c74 (patch) | |
tree | 47eaff4a345e516eacb01aca97683630ab308c36 /t/t1005-read-tree-reset.sh | |
parent | Git 2.11.1 (diff) | |
download | tgif-16f9b4cdd31de2b8185c5c717efa6d28c56b3c74.tar.xz |
name-hash: specify initial size for istate.dir_hash table
Specify an initial size for the istate.dir_hash HashMap matching
the size of the istate.name_hash.
Previously hashmap_init() was given 0, causing a 64 bucket
hashmap to be created. When working with very large
repositories, this would cause numerous rehash() calls to
realloc and rebalance the hashmap. This is especially true
when the worktree is deep, with many directories containing
a few files.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1005-read-tree-reset.sh')
0 files changed, 0 insertions, 0 deletions