From b3bec56d86f602da418763d3521aad87d5eb6b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 May 2018 16:19:32 +0200 Subject: text: only default to mmap for files larger than 64 MiB --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.c') 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. -- cgit v1.2.3