aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorSteve Hoelzer <shoelzer@gmail.com>2014-06-02 11:43:00 -0500
committerJunio C Hamano <gitster@pobox.com>2014-06-03 10:06:53 -0700
commit299e29870b777818ab84a508c901a4ef924f6fd4 (patch)
treee866a7c5268dbc54a3fe8fe6e3fcecfe6ff814ca /environment.c
parente156455ea49124c140a67623f22a393db62d5d98 (diff)
downloadgit-299e29870b777818ab84a508c901a4ef924f6fd4.tar.gz
git-299e29870b777818ab84a508c901a4ef924f6fd4.tar.xz
environment.c: enable core.preloadindex by default
Many people are on filesystems with horrible stat latency (not limited to Windows but also NFS), which core.preloadindex was designed to help. We discussed enabling it by default early in 2013 but didn't. Per http://thread.gmane.org/gmane.comp.version-control.git/219273/focus=219322 let's enable the setting by default, with the original choice of max 20 threads / min 500 paths per thread parameters. Signed-off-by: Steve Hoelzer <shoelzer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c
index 5c4815dbe..1c686c909 100644
--- a/environment.c
+++ b/environment.c
@@ -71,7 +71,7 @@ unsigned long pack_size_limit_cfg;
char comment_line_char = '#';
/* Parallel index stat data preload? */
-int core_preload_index = 0;
+int core_preload_index = 1;
/* This is set by setup_git_dir_gently() and/or git_default_config() */
char *git_work_tree_cfg;