Skip to content

Commit

Permalink
Merge branch 'jk/reduce-gc-aggressive-depth'
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
gitster committed Sep 21, 2016
2 parents ae1ae60 + 07e7dbf commit 0952ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/config.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion builtin/gc.c
Expand Up @@ -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;
Expand Down

0 comments on commit 0952ca8

Please sign in to comment.