Skip to content

Commit ada7c5f

Browse files
committed
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
2 parents 2871423 + f279894 commit ada7c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ int repo_index_has_changes(struct repository *repo,
24652465
}
24662466
}
24672467

2468-
#define WRITE_BUFFER_SIZE 8192
2468+
#define WRITE_BUFFER_SIZE (128 * 1024)
24692469
static unsigned char write_buffer[WRITE_BUFFER_SIZE];
24702470
static unsigned long write_buffer_len;
24712471

0 commit comments

Comments
 (0)