diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-05-30 16:19:32 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-30 16:27:45 +0200 |
| commit | b3bec56d86f602da418763d3521aad87d5eb6b25 (patch) | |
| tree | a64326663f1bd6a8ed40566edbd458425eeb1de2 | |
| parent | c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b (diff) | |
| download | vis-b3bec56d86f602da418763d3521aad87d5eb6b25.tar.gz vis-b3bec56d86f602da418763d3521aad87d5eb6b25.tar.xz | |
text: only default to mmap for files larger than 64 MiB
| -rw-r--r-- | text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
