]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ti/fetch-everything-local-optim'
authorJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 23:25:43 +0000 (08:25 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 23:25:43 +0000 (08:25 +0900)
A "git fetch" from a repository with insane number of refs into a
repository that is already up-to-date still wasted too many cycles
making many lstat(2) calls to see if these objects at the tips
exist as loose objects locally.  These lstat(2) calls are optimized
away by enumerating all loose objects beforehand.

It is unknown if the new strategy negatively affects existing use
cases, fetching into a repository with many loose objects from a
repository with small number of refs.

* ti/fetch-everything-local-optim:
  fetch-pack.c: use oidset to check existence of loose object

1  2 
cache.h
fetch-pack.c
sha1_file.c

diff --cc cache.h
Simple merge
diff --cc fetch-pack.c
Simple merge
diff --cc sha1_file.c
Simple merge