]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/pack-objects-optim'
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Aug 2016 21:48:39 +0000 (14:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Aug 2016 21:48:39 +0000 (14:48 -0700)
"git pack-objects" has a few options that tell it not to pack
objects found in certain packfiles, which require it to scan .idx
files of all available packs.  The codepaths involved in these
operations have been optimized for a common case of not having any
non-local pack and/or any .kept pack.

* jk/pack-objects-optim:
  pack-objects: compute local/ignore_pack_keep early
  pack-objects: break out of want_object loop early
  find_pack_entry: replace last_found_pack with MRU cache
  add generic most-recently-used list
  sha1_file: drop free_pack_by_name
  t/perf: add tests for many-pack scenarios

1  2 
Makefile
builtin/pack-objects.c
cache.h
sha1_file.c

diff --cc Makefile
Simple merge
Simple merge
diff --cc cache.h
Simple merge
diff --cc sha1_file.c
Simple merge