emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/tmr f61bdb0159: Use smaller value for sample history-le


From: ELPA Syncer
Subject: [elpa] externals/tmr f61bdb0159: Use smaller value for sample history-length
Date: Thu, 7 Jul 2022 14:58:01 -0400 (EDT)

branch: externals/tmr
commit f61bdb01596892ffba707992713104fb426cb210
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Use smaller value for sample history-length
    
    Quote from Daniel Mendler:
    
        I want to warn about too large values for history-length since this
        leads to a high memory cost (M-x memory-report), which potentially
        slows down Emacs and garbage collection as a whole. I used to use
        such large values myself but settled on 500 for now.
    
        
https://lists.sr.ht/~protesilaos/tmr/<f27ecd11-a685-f3ff-c4fa-084149b35969@daniel-mendler.de>
---
 README.org | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 0d896a3472..9102bc517b 100644
--- a/README.org
+++ b/README.org
@@ -266,7 +266,7 @@ configuration:
 #+begin_src emacs-lisp
 (require 'savehist)
 (setq savehist-file (locate-user-emacs-file "savehist"))
-(setq history-length 10000)
+(setq history-length 500)
 (setq history-delete-duplicates t)
 (setq savehist-save-minibuffer-history t)
 (add-hook 'after-init-hook #'savehist-mode)



reply via email to

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