aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 76af3ff9a4c..5a95d41e7ab 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -572,7 +572,9 @@ make_gap (ptrdiff_t nbytes_added)
572 * With /4096 => 131s 572 * With /4096 => 131s
573 * With /∞ => gave up after 858s 573 * With /∞ => gave up after 858s
574 * Of couse, ideally we should never call set-buffer-multibyte on 574 * Of couse, ideally we should never call set-buffer-multibyte on
575 * a non-empty buffer (e.g. use buffer-swa-text instead). */ 575 * a non-empty buffer (e.g. use buffer-swap-text instead).
576 * We chose /64 because it already brings almost the best performance while
577 * limiting the potential wasted memory to 1.5%. */
576 make_gap_larger (max (nbytes_added, (Z - BEG) / 64)); 578 make_gap_larger (max (nbytes_added, (Z - BEG) / 64));
577#if defined USE_MMAP_FOR_BUFFERS || defined REL_ALLOC || defined DOUG_LEA_MALLOC 579#if defined USE_MMAP_FOR_BUFFERS || defined REL_ALLOC || defined DOUG_LEA_MALLOC
578 else 580 else