all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#69071: Emacs master branch: c-ts-mode is slow with large C functions.
@ 2024-02-12 11:30 Alan Mackenzie
  2024-02-12 13:14 ` Kévin Le Gouguec
  2024-02-15  8:36 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Alan Mackenzie @ 2024-02-12 11:30 UTC (permalink / raw)
  To: 69071

Hello, Emacs.

Using Emacs master:

c-ts-mode is slow on large C functions when editing towards the end of
such a function.

As an extreme example, there is a function proto_register_rrc in the
file packet-rrc.c which is part of Wireshark.  This file is "available"
from Github, but sadly no longer freely available - you need to allow
Microsoft's scripts to run on your machine.  I'm willing to send this
file by email to anybody who needs it.  It is almost 10 MB in size.

proto_register_rrc is around 50,000 lines long, total size about 2¼ MB.

Near the end of the function, after typing a character, there is a delay
of between 9 and 10 seconds (on my 7 year old machine) before redisplay
happens.  This is too long.  Some optimisation seems needed.

On disabling font-lock-mode, the response becomes instantaneous.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

end of thread, other threads:[~2024-03-01  7:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 11:30 bug#69071: Emacs master branch: c-ts-mode is slow with large C functions Alan Mackenzie
2024-02-12 13:14 ` Kévin Le Gouguec
2024-02-15  8:36 ` Eli Zaretskii
2024-02-16  4:06   ` Yuan Fu
2024-02-20  5:49     ` Yuan Fu
2024-02-20 13:55       ` Eli Zaretskii
2024-02-24 20:35         ` Yuan Fu
2024-02-25  5:48           ` Eli Zaretskii
2024-03-01  1:26             ` Yuan Fu
2024-03-01  7:09               ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.