Merge branch 'jk/reduce-gc-aggressive-depth'
authorJunio C Hamano <gitster@pobox.com>
Wed, 21 Sep 2016 22:15:29 +0000 (15:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Sep 2016 22:15:30 +0000 (15:15 -0700)
"git gc --aggressive" used to limit the delta-chain length to 250,
which is way too deep for gaining additional space savings and is
detrimental for runtime performance. The limit has been reduced to
50.

* jk/reduce-gc-aggressive-depth:
gc: default aggressive depth to 50

Documentation/config.txt
builtin/gc.c
index 32f065ca6a9382ba7b496d9c6606a72941dc0c1f..6410d7cd983403a35911b75949641fc37e93d16b 100644 (file)
@@ -1366,7 +1366,7 @@ fsck.skipList::
 gc.aggressiveDepth::
        The depth parameter used in the delta compression
        algorithm used by 'git gc --aggressive'.  This defaults
-       to 250.
+       to 50.
 
 gc.aggressiveWindow::
        The window size parameter used in the delta compression
index 332bcf7e7a0ae1900199349870103c388c9ffb35..069950d0b417f5eb97cd756ae32df7a2fb13abce 100644 (file)
@@ -28,7 +28,7 @@ static const char * const builtin_gc_usage[] = {
 
 static int pack_refs = 1;
 static int prune_reflogs = 1;
-static int aggressive_depth = 250;
+static int aggressive_depth = 50;
 static int aggressive_window = 250;
 static int gc_auto_threshold = 6700;
 static int gc_auto_pack_limit = 50;