GNU bug report logs -
#59738
c-ts-mode is slow with large buffers.
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Thu, 1 Dec 2022 11:51:02 UTC
Severity: normal
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Sat, 10 Dec 2022 15:14:27 -0800
> Cc: Eli Zaretskii <eliz <at> gnu.org>,
> 59738 <at> debbugs.gnu.org
>
> Querying time (thus fontification time) increases as the buffer size increases, even if we limit the range of the query to a fixed region (which is what we do in tree-sitter font-lock). This is unlike c-mode, where fontifying a region takes the same amount of time regardless of the buffer size.
The last sentence is inaccurate: sometimes CC Mode must look far
beyond the fixed region which jit-lock.el asks it to fontify. AFAIR,
that is mainly to figure out the syntactical context of the portion of
the buffer that needs to be fontified.
This bug report was last modified 2 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.