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>
Steve Hoelzer committed
Jun 2, 2014 at 11:43 UTC
299e29870b777818ab84a508c901a4ef924f6fd4
2 files changed
+3
-3
Documentation/config.txt
+2
-2
@@ -613,9 +613,9 @@ core.preloadindex::
613
+
614
This can speed up operations like 'git diff' and 'git status' especially
615
on filesystems like NFS that have weak caching semantics and thus
616
-relatively high IO latencies. With this set to 'true', Git will do the
616
+relatively high IO latencies. When enabled, Git will do the
617
index comparison to the filesystem data in parallel, allowing
618
-overlapping IO's.
618
+overlapping IO's. Defaults to true.
619
620
core.createObject::
621
You can set this to 'link', in which case a hardlink followed by
environment.c
+1
-1
@@ -71,7 +71,7 @@ unsigned long pack_size_limit_cfg;
71
char comment_line_char = '#';
72
73
/* Parallel index stat data preload? */
74
-int core_preload_index = 0;
74
+int core_preload_index = 1;
75
76
/* This is set by setup_git_dir_gently() and/or git_default_config() */
77
char *git_work_tree_cfg;