bug#81334: 32.0.50; fontifying buffers with many blocks is very slow

Eli Zaretskii <[email protected]> Sat, 01 Aug 2026 12:49:14 +0300
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
> From: Yuan Fu <[email protected]>
> Date: Wed, 29 Jul 2026 00:07:06 -0700
> Cc: Eli Zaretskii <[email protected]>,
>  [email protected],
>  [email protected],
>  [email protected],
>  [email protected],
>  [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.

Thanks, I've now installed both of the patches on the master branch,
and I'm closing this bug.