[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/3] Start opportunistic GC timer at startup
From: |
Stefan Monnier |
Subject: |
Re: [PATCH v2 3/3] Start opportunistic GC timer at startup |
Date: |
Sat, 05 Dec 2020 09:41:13 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> > My point is that commands are separate from redisplay in Emacs, and
>> > there's a lot of GC that's unfortunately goes on as part of, or
>> > immediately after, a redisplay cycle in latest versions of Emacs.
>> Indeed (tho I don't understand why you say "or immediately after").
> Simply because I don't know whether GC happens while redisplay runs,
> or the first time we call eval/funcall/whatever that checks whether GC
> is due. What I see is frequent GCs "about the same time" as
> redisplay, and I never bothered finding out whether it's actually
> inside the call to redisplay_internal.
Ah, right, I misread "allocation" where you wrote "GC".
The redisplay can cause a lot of allocation (usually via jit-lock) which
in turn can trigger GC either during redisplay or very soon
after, indeed.
Stefan