aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-03-01 14:02:58 -0800
committerJunio C Hamano <gitster@pobox.com>2021-03-01 14:02:58 -0800
commitada7c5fae5ba8c1fab4fc90131ae4058e0cb9271 (patch)
tree90b450e1a4950064b866b3660eba17c396a73759 /read-cache.c
parent28714238c8d482345ca17e8dd98d8cc328de24a8 (diff)
parentf279894d283101e8e7427347a5469a8731820872 (diff)
downloadgit-ada7c5fae5ba8c1fab4fc90131ae4058e0cb9271.tar.gz
Merge branch 'ns/raise-write-index-buffer-size'
Raise the buffer size used when writing the index file out from (obviously too small) 8kB to (clearly sufficiently large) 128kB. * ns/raise-write-index-buffer-size: read-cache: make the index write buffer size 128K
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 8a4c6c70a5..1e9a50c6c7 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -2465,7 +2465,7 @@ int repo_index_has_changes(struct repository *repo,
}
}
-#define WRITE_BUFFER_SIZE 8192
+#define WRITE_BUFFER_SIZE (128 * 1024)
static unsigned char write_buffer[WRITE_BUFFER_SIZE];
static unsigned long write_buffer_len;