unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* c-ts-mode is slow with large buffers.
@ 2022-11-20 14:47 Alan Mackenzie
  2022-11-20 15:04 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2022-11-20 14:47 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

Just for fun, I downloaded the feature/tree-sitter branch, and tried
scrolling through a large C buffer, from file packet-rrc.c.  This file
is part of Wireshark, and was the topic of bug #45248.  It is just under
10 MB big.

To scroll all the way through the file with c-ts-mode took ~53 minutes.
For comparison, in C Mode it to ~157 seconds.  That's a factor of around
20 difference.

Also of interest, towards the end of the buffer in c-ts-mode, the
font-locking gave up completely.  It was in an initialisation for a big
brace block.

I'm probably not saying anything people don't already know, but the
measured timings might be helpful.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-ts-mode is slow with large buffers.
  2022-11-20 14:47 c-ts-mode is slow with large buffers Alan Mackenzie
@ 2022-11-20 15:04 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-11-20 15:04 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

> Date: Sun, 20 Nov 2022 14:47:09 +0000
> From: Alan Mackenzie <acm@muc.de>
> 
> Just for fun, I downloaded the feature/tree-sitter branch, and tried
> scrolling through a large C buffer, from file packet-rrc.c.  This file
> is part of Wireshark, and was the topic of bug #45248.  It is just under
> 10 MB big.
> 
> To scroll all the way through the file with c-ts-mode took ~53 minutes.
> For comparison, in C Mode it to ~157 seconds.  That's a factor of around
> 20 difference.
> 
> Also of interest, towards the end of the buffer in c-ts-mode, the
> font-locking gave up completely.  It was in an initialisation for a big
> brace block.
> 
> I'm probably not saying anything people don't already know, but the
> measured timings might be helpful.

Thanks, but please report this and similar issues using report-emacs-bug,
not here.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-20 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 14:47 c-ts-mode is slow with large buffers Alan Mackenzie
2022-11-20 15:04 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).