bug#81334: 32.0.50; fontifying buffers with many blocks is very slow
Yuan Fu <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
> On Jul 28, 2026, at 4:38 AM, Rahul Martim Juliato <[email protected]> wrote: > > Yuan Fu <[email protected]> writes: > >>> On Jul 25, 2026, at 10:40 PM, Eli Zaretskii <[email protected]> wrote: >>> >>>> [...] >>> >>> Which patch you think we should install? Rahul posted 2 patches. >> >> This one (see attached). I took liberty to edit some of the comments. >> > > Both patches are needed: Yuan's new 'language-cache.patch' and the > markdown-ts-mode change, which I'm re-attaching here as > 'markdown-ts-mode-Make-inline-HTML-embed-local-bug-81334.patch'. > > The latter is a one-liner on markdown-ts-mode.el, adding :local t to the > html_tag range rule. > > The two are complementary: the cache removes the parser-creation cost, > and the :local t removes the O(N^2) non-local range update that remains > once parser creation is cheap. > > -- > Rahul Martim Juliato > > <markdown-ts-mode-Make-inline-HTML-embed-local-bug-81334.patch> That’s true, sorry, I thought we’ve switched to local parsers for markdown-ts-mode already. Both should be applied on master. Yuan