[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/1] Add option to delay fontification of source blocks
From: |
Kyle Meyer |
Subject: |
Re: [PATCH 0/1] Add option to delay fontification of source blocks |
Date: |
Mon, 29 Mar 2021 01:03:28 -0400 |
Leo Okawa Ericson writes:
> Fontification of long code blocks can be very slow. The patch, which should be
> in another other email, mitigates this by
> adding an option to delay the fontification after the user has become idle by
> using idle timers. This seems to be faster from my limited testing, but I'm
> not
> sure if something will go horribly wrong because of the timers.
Thanks for the patch. My initial reaction is that I'm not sure about
adding an idle timer for a particular aspect of fontification. If we do
go this route, I think the case needs to be made why this spot is
special, and why we don't expect or would reject follow-up patches for
this and that other area.
Have you explored whether jit-lock (e.g., jit-lock-defer-time) helps for
your use case?