fast-import: implement unpack limit
commitd9545c7f465ed103df44cd93caddfdd265757779
authorEric Wong <normalperson@yhbt.net>
Mon, 25 Apr 2016 21:17:28 +0000 (25 21:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 May 2016 21:56:00 +0000 (11 14:56 -0700)
tree6761dd88c70a108724c3db033689d328a8d1f5b4
parent6a6636270fbaf74609cd3e1bd207dd2c420d640a
fast-import: implement unpack limit

With many incremental imports, small packs become highly
inefficient due to the need to readdir scan and load many
indices to locate even a single object.  Frequent repacking and
consolidation may be prohibitively expensive in terms of disk
I/O, especially in large repositories where the initial packs
were aggressively optimized and marked with .keep files.

In those cases, users may be better served with loose objects
and relying on "git gc --auto".

This changes the default behavior of fast-import for small
imports found in test cases, so adjustments to t9300 were
necessary.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh
t/t9302-fast-import-unpack-limit.sh [new file with mode: 0755]