emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation and gc


From: Dr. Arne Babenhauserheide
Subject: Re: Indentation and gc
Date: Fri, 10 Mar 2023 15:36:06 +0100
User-agent: mu4e 1.8.13; emacs 28.1

Ergus <spacibba@aol.com> writes:

> Just today I enabled the garbage-collection-messages and I found that
> indenting the buffer with `C-x h <tab>` in just ~150 C++ lines I get the
> garbage-collection message printed about 4 or 5 times before the
> indentation finishes.


The gc-cons-threshold is very small when looking at modern workloads.

I have these set in my .emacs.d/init.el

;; at the start:

;; Make startup faster by reducing the frequency of garbage
;; collection.  The default is 800 kilobytes.  Measured in bytes.
(setq gc-cons-threshold (* 100 1024 1024))


;; at the end:

;; Make gc pauses faster by decreasing the threshold again (from the increased 
initial).
(setq gc-cons-threshold (* 20 1024 1024))
;; original value: 800 000

;; speed up reading from external processes
(setq read-process-output-max (* 1024 1024)) ;; 1mb


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

Attachment: signature.asc
Description: PGP signature


reply via email to

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