emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/raeburn-startup 4c8f07e 09/17: Increase gc-cons-th


From: Ken Raeburn
Subject: [Emacs-diffs] scratch/raeburn-startup 4c8f07e 09/17: Increase gc-cons-threshold.
Date: Thu, 15 Dec 2016 11:33:18 +0000 (UTC)

branch: scratch/raeburn-startup
commit 4c8f07e389f39ba0c03e698f707997232b961076
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 175dcab..cd0af50 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -215,7 +215,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]