From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69071: Emacs master branch: c-ts-mode is slow with large C functions. Date: Thu, 15 Feb 2024 10:36:11 +0200 Message-ID: <86le7mw2dg.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69071@debbugs.gnu.org To: Alan Mackenzie , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 15 09:36:58 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1raXEm-0004R1-OU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Feb 2024 09:36:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXEc-0004tj-8x; Thu, 15 Feb 2024 03:36:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raXEZ-0004tA-Or for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 03:36:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raXEZ-0007Qv-H3 for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 03:36:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raXEr-0000bG-Nd for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 03:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2024 08:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69071 X-GNU-PR-Package: emacs Original-Received: via spool by 69071-submit@debbugs.gnu.org id=B69071.17079862012280 (code B ref 69071); Thu, 15 Feb 2024 08:37:01 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 15 Feb 2024 08:36:41 +0000 Original-Received: from localhost ([127.0.0.1]:53957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXEX-0000ai-6h for submit@debbugs.gnu.org; Thu, 15 Feb 2024 03:36:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXEU-0000aS-Tu for 69071@debbugs.gnu.org; Thu, 15 Feb 2024 03:36:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raXE6-0007Jo-AT; Thu, 15 Feb 2024 03:36:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=czIzi93nM6AY2+QCiFkDd0T5lKIWrNGO43gOA7QoqS8=; b=qsPr96okkL7XsW78l3zB ERLmb6USGE0Jj18Dhrucjx75L+uCFNzXvNcJvsn4clmxZTdgadN+w2aGqTP1R48fnroAASLUcJ9Xy xt/1kI7NaOm6TkO0sCc3OdSqbYVSMU8JTygQtv56iTFMHgUWJ6PDVv9XTH8QxPY91eJMY2AnUCs/k w9YhVmZaDU8M+6iNOfE0f5rkzjOXNNvn69tYQo6BMU7nNNlCqj4y45su0UwCqJC7C83KqTpZRm+Cj uYciI6201jQOJ/MOMYk0LFHL0epxf5WrNBuaEA5gPpnFrIGpB9BUc9TZV2Bs0/Ra/Olj+M/zD+lB4 YoI/pmkvBvkY+w==; In-Reply-To: (message from Alan Mackenzie on Mon, 12 Feb 2024 11:30:00 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280049 Archived-At: > Date: Mon, 12 Feb 2024 11:30:00 +0000 > From: Alan Mackenzie > > 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. Yuan, could you please look into this?