summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2016-09-24 14:32:58 +0200
committerMartin Polden <martin.polden@gmail.com>2016-09-24 14:32:58 +0200
commit2eb1e57f56d322abf65e51608f762aaef94726e2 (patch)
tree94184df8f4b139c9c075346ba8d868413c3aab83
parentb76320b343fd67ca714a0dcafe7f2dc73e9b31bd (diff)
Increase garbage collection threshold
-rw-r--r--init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.el b/init.el
index 03c509f..2293ead 100644
--- a/init.el
+++ b/init.el
@@ -4,6 +4,10 @@
;; add ~/.emacs.d/lisp to load path
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
+;; increase gc threshold to 20 MB before loading anything
+;; based on flx recommendation: https://github.com/lewang/flx
+(setq gc-cons-threshold 20000000)
+
;; load files
(require 'init-package)
(require 'init-appearance)