diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-03-01 14:02:58 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-01 14:02:58 -0800 |
commit | ada7c5fae5ba8c1fab4fc90131ae4058e0cb9271 (patch) | |
tree | 90b450e1a4950064b866b3660eba17c396a73759 | |
parent | Merge branch 'hv/trailer-formatting' (diff) | |
parent | read-cache: make the index write buffer size 128K (diff) | |
download | tgif-ada7c5fae5ba8c1fab4fc90131ae4058e0cb9271.tar.xz |
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
-rw-r--r-- | read-cache.c | 2 |
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; |