diff options
author | Elijah Newren <newren@gmail.com> | 2021-07-30 11:47:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-30 09:01:18 -0700 |
commit | fa0e936fbb683dbce70b797ae8a5be6b88f48d88 (patch) | |
tree | edf07ff60d6aa56feedc1992578cd82c03a0c4e4 /t/t4019-diff-wserror.sh | |
parent | merge-ort: rename str{map,intmap,set}_func() (diff) | |
download | tgif-fa0e936fbb683dbce70b797ae8a5be6b88f48d88.tar.xz |
diffcore-rename: use a mem_pool for exact rename detection's hashmap
Exact rename detection, via insert_file_table(), uses a hashmap to store
files by oid. Use a mem_pool for the hashmap entries so these can all be
allocated and deallocated together.
For the testcases mentioned in commit 557ac0350d ("merge-ort: begin
performance work; instrument with trace2_region_* calls", 2020-10-28),
this change improves the performance as follows:
Before After
no-renames: 204.2 ms ± 3.0 ms 202.5 ms ± 3.2 ms
mega-renames: 1.076 s ± 0.015 s 1.072 s ± 0.012 s
just-one-mega: 364.1 ms ± 7.0 ms 357.3 ms ± 3.9 ms
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4019-diff-wserror.sh')
0 files changed, 0 insertions, 0 deletions