Merge branch 'bd/maint-unpack-trees-parawalk-fix' into maint
* bd/maint-unpack-trees-parawalk-fix: unpack-trees: Make index lookahead less pessimal
This commit is contained in:
commit
54dc783766
@ -520,9 +520,17 @@ static int find_cache_pos(struct traverse_info *info,
|
|||||||
const char *ce_name, *ce_slash;
|
const char *ce_name, *ce_slash;
|
||||||
int cmp, ce_len;
|
int cmp, ce_len;
|
||||||
|
|
||||||
if (!ce_in_traverse_path(ce, info))
|
if (ce->ce_flags & CE_UNPACKED) {
|
||||||
|
/*
|
||||||
|
* cache_bottom entry is already unpacked, so
|
||||||
|
* we can never match it; don't check it
|
||||||
|
* again.
|
||||||
|
*/
|
||||||
|
if (pos == o->cache_bottom)
|
||||||
|
++o->cache_bottom;
|
||||||
continue;
|
continue;
|
||||||
if (ce->ce_flags & CE_UNPACKED)
|
}
|
||||||
|
if (!ce_in_traverse_path(ce, info))
|
||||||
continue;
|
continue;
|
||||||
ce_name = ce->name + pfxlen;
|
ce_name = ce->name + pfxlen;
|
||||||
ce_slash = strchr(ce_name, '/');
|
ce_slash = strchr(ce_name, '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user