From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#74357: c-mode: Some syntactic constructs cause unreasonable typing lag Date: Tue, 10 Dec 2024 10:43:08 +0000 Message-ID: References: <86ed3cinfg.fsf@gnu.org> 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="10742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74357-done@debbugs.gnu.org, Eli Zaretskii , acm@muc.de To: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 10 11:44:19 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 1tKxj0-0002es-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Dec 2024 11:44:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKxim-0005Hy-TY; Tue, 10 Dec 2024 05:44:04 -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 1tKxil-0005Hc-4S for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 05:44:03 -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 1tKxik-0007RG-Qq for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 05:44:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:In-Reply-To:MIME-Version:References:Date:To:Subject; bh=DA5PVQSPOk1PsCe7uiIVWg4zdHXtxl8YFEMVsZJBZFg=; b=KMQ8KkxHi/puwaGmjo7UKi9LZIM1GymQX0NUYy5Fw8rXWuPsoLXKlVdVcq9jbC68v8s1hkuDTPIzBwJqHf4A8Oen1NUQ9GiQ7gOGbNvRbdGN4f6rVpWw2Nm4mvGlA8lMM0AUH97yjj/XUn88v5wgklNQbBk5AAgu9cHbYFhq7M+/C6rwsf0FvY+OvslOK3ePhdZH78XAEzzQoZnNkLecXPffdPP4ns2tqJwF9wc/CC3+eC5Orih572dHIlC634b3TJQzbMfXbWjKT0W+ntSa0qIUjoCy+nsHsNJGM9s3e5NAMNWNzM/meA4690q6QTJFFUs0dEDllyRBuitgJy0i4g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKxik-0001YX-Ly for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 05:44:02 -0500 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Dec 2024 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74357 X-GNU-PR-Package: emacs Mail-Followup-To: 74357@debbugs.gnu.org, acm@muc.de, bjourne@gmail.com Original-Received: via spool by 74357-done@debbugs.gnu.org id=D74357.17338273985900 (code D ref 74357); Tue, 10 Dec 2024 10:44:02 +0000 Original-Received: (at 74357-done) by debbugs.gnu.org; 10 Dec 2024 10:43:18 +0000 Original-Received: from localhost ([127.0.0.1]:57077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKxi2-0001X6-4O for submit@debbugs.gnu.org; Tue, 10 Dec 2024 05:43:18 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:14107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKxhz-0001Wp-Py for 74357-done@debbugs.gnu.org; Tue, 10 Dec 2024 05:43:16 -0500 Original-Received: (qmail 40780 invoked by uid 3782); 10 Dec 2024 11:43:09 +0100 Original-Received: from muc.de (p4fe1562c.dip0.t-ipconnect.de [79.225.86.44]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 10 Dec 2024 11:43:08 +0100 Original-Received: (qmail 6037 invoked by uid 1000); 10 Dec 2024 10:43:08 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:296741 Archived-At: Hello, Björn. On Fri, Dec 06, 2024 at 21:53:12 +0100, Björn Lindqvist wrote: > Hi Alan, > Den sön 1 dec. 2024 kl 18:49 skrev Alan Mackenzie : > > Hello, Björn. > > I've committed the patch to the Emacs master branch, after having done a > > little more optimisation on it. I haven't closed the bug, yet, though. > > The question is, is the patch good enough to close the bug? What do you > > think? On my timings, typing in 20 y's at Line 328 of your test file, > > with the patch was approximately three times as fast as before it. > Unfortunately, I'm not able to test your patch on my slow machine so > that will have to wait until the next Emacs release hits the Arch > repositories. But I'm quite happy with what you've accomplished > already. Typing in c-mode feels much faster than before. Thanks! Thanks for doing this testing. I'm happy it's been well received. I've decided to close this bug, now, which I'm doing with this post. Should the improvement prove insufficient on your slower machine, could you possibly open another bug for it, please? Thanks! > -- > mvh/best regards Björn Lindqvist -- Alan Mackenzie (Nuremberg, Germany).