]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'hf/unpack-trees-quadratic-scan'
authorJunio C Hamano <gitster@pobox.com>
Sun, 19 Jul 2026 17:42:18 +0000 (10:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 Jul 2026 17:42:19 +0000 (10:42 -0700)
The cache-scanning loop in 'next_cache_entry()' has been optimized
to avoid rescanning already-unpacked index entries, preventing a
quadratic performance slow-down when diffing the working tree
against a commit with a pathspec matching early index entries.

* hf/unpack-trees-quadratic-scan:
  unpack-trees: avoid quadratic index scan in next_cache_entry()

1  2 
unpack-trees.c

diff --cc unpack-trees.c
Simple merge