[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;
- [Emacs-diffs] branch scratch/raeburn-startup created (now 13f3370), Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 1c4b68d 03/43: Force purification off when using dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup bd42a5a 02/43: Increase gc-cons-threshold.,
Ken Raeburn <=
- [Emacs-diffs] scratch/raeburn-startup 250c9ad 04/43: Don't get into an error loop if dumped.elc isn't found., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 1184a17 08/43: Don't dump a copy of the obarray., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 8ec5f5a 11/43: Don't trash current-load-list while loading dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 19efb25 09/43: Use #N# syntax for repeated symbols in dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 4a6ef22 12/43: Save and restore default values, and buffer-local setting., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup d85d26b 10/43: Eli's test patch to stop using dump-emacs., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup e7fcd8a 14/43: Reload category table at startup rather than saving it., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 406bfc4 15/43: Call unify-charset on appropriate charsets., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face cache., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 7414991 01/43: Stefan's patch to write out and load "dumped.elc"; Oct 31 version., Ken Raeburn, 2017/07/31