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 20:23:18 +0100
User-agent: mu4e 1.8.13; emacs 28.1

Eli Zaretskii <eliz@gnu.org> writes:

>> ;; 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
>
> This can only be done around specific portions of code known in
> advance to be long and GC-intensive.  I don't think this kind of
> technique can be used in the situation described by the OP.

This is at the end: My emacs simply has a ~25x higher gc threshold than
normal and allows more caching of process output.

That helps a lot with lsp (language servers).

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]