diff options
| author | Derrick Stolee <dstolee@microsoft.com> | 2021-03-30 13:11:02 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-03-30 12:57:48 -0700 |
| commit | 2de37c536d54a28a032491ad4ef97632ef6ab836 (patch) | |
| tree | e9eb29e598eb4cbb34ac3609ad9fe1189642fb61 /t/perf/p2000-sparse-operations.sh | |
| parent | sparse-checkout: disable sparse-index (diff) | |
| download | git-2de37c536d54a28a032491ad4ef97632ef6ab836.tar.gz git-2de37c536d54a28a032491ad4ef97632ef6ab836.zip | |
cache-tree: integrate with sparse directory entries
The cache-tree extension was previously disabled with sparse indexes.
However, the cache-tree is an important performance feature for commands
like 'git status' and 'git add'. Integrate it with sparse directory
entries.
When writing a sparse index, completely clear and recalculate the cache
tree. By starting from scratch, the only integration necessary is to
check if we hit a sparse directory entry and create a leaf of the
cache-tree that has an entry_count of one and no subtrees.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p2000-sparse-operations.sh')
0 files changed, 0 insertions, 0 deletions
