aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-05-30 16:19:32 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-30 16:27:45 +0200
commitb3bec56d86f602da418763d3521aad87d5eb6b25 (patch)
treea64326663f1bd6a8ed40566edbd458425eeb1de2 /text.c
parentc0eb121a7bdb6e9edf7fb97add80a57bff1feb5b (diff)
downloadvis-b3bec56d86f602da418763d3521aad87d5eb6b25.tar.gz
vis-b3bec56d86f602da418763d3521aad87d5eb6b25.tar.xz
text: only default to mmap for files larger than 64 MiB
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 548805b..35d1bcd 100644
--- a/text.c
+++ b/text.c
@@ -34,7 +34,7 @@
/* Files smaller than this value are copied on load, larger ones are mmap(2)-ed
* directely. Hence the former can be truncated, while doing so on the latter
* results in havoc. */
-#define BLOCK_MMAP_SIZE (1 << 23)
+#define BLOCK_MMAP_SIZE (1 << 26)
/* Block holding the file content, either readonly mmap(2)-ed from the original
* file or heap allocated to store the modifications.