emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/raeburn-startup bd42a5a 02/43: Increase gc-cons-th


From: Ken Raeburn
Subject: [Emacs-diffs] scratch/raeburn-startup bd42a5a 02/43: Increase gc-cons-threshold.
Date: Mon, 31 Jul 2017 02:10:56 -0400 (EDT)

branch: scratch/raeburn-startup
commit bd42a5ae4336eb681ce5f658fee738bc365a244d
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>

    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 2d785d5..5d02bb3 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]