]> git.eshelyaron.com Git - emacs.git/commitdiff
Increase gc-cons-threshold.
authorKen Raeburn <raeburn@raeburn.org>
Wed, 7 Dec 2016 11:34:22 +0000 (06:34 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 22 Jul 2017 08:14:22 +0000 (04:14 -0400)
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

index 2d785d5b9a4dc352b3942a4909419e0c2bc93958..5d02bb3cfbb5d8f415cad879464046070e838917 100644 (file)
@@ -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;