From bd42a5ae4336eb681ce5f658fee738bc365a244d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 7 Dec 2016 06:34:22 -0500 Subject: [PATCH] Increase gc-cons-threshold. The large "progn" block in dumped.elc greatly exceeds the old default GC threshold. Garbage collection during startup becomes a non-trivial part of startup time. (Less than 10% in my testing, but that's not nothing.) This is NOT a good long-term solution, at least by itself. * src/alloc.c (GC_DEFAULT_THRESHOLD): Increase to 3 million words. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 2d785d5b9a4..5d02bb3cfbb 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -221,7 +221,7 @@ alloc_unexec_post (void) /* Default value of gc_cons_threshold (see below). */ -#define GC_DEFAULT_THRESHOLD (100000 * word_size) +#define GC_DEFAULT_THRESHOLD (3000000 * word_size) /* Global variables. */ struct emacs_globals globals; -- 2.39.5