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#59530: 29.0.50; Fontification hangs with C header file Date: Sat, 26 Nov 2022 15:09:07 +0000 Message-ID: References: <87wn7lm1o4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59530@debbugs.gnu.org To: Sujith Manoharan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 16:10:22 2022 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 1oywot-0007Mv-9O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 16:10:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oywof-0004Ja-Oa; Sat, 26 Nov 2022 10:10:05 -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 1oywod-0004Ix-Um for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 10:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oywod-0003mU-M3 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 10:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oywoc-0006xq-Hd for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 10:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2022 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59530 X-GNU-PR-Package: emacs Original-Received: via spool by 59530-submit@debbugs.gnu.org id=B59530.166947535926714 (code B ref 59530); Sat, 26 Nov 2022 15:10:02 +0000 Original-Received: (at 59530) by debbugs.gnu.org; 26 Nov 2022 15:09:19 +0000 Original-Received: from localhost ([127.0.0.1]:41127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oywnv-0006wn-HN for submit@debbugs.gnu.org; Sat, 26 Nov 2022 10:09:19 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]:29209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oywnr-0006wX-J2 for 59530@debbugs.gnu.org; Sat, 26 Nov 2022 10:09:18 -0500 Original-Received: (qmail 13213 invoked by uid 3782); 26 Nov 2022 16:09:09 +0100 Original-Received: from acm.muc.de (p4fe15e1b.dip0.t-ipconnect.de [79.225.94.27]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Nov 2022 16:09:09 +0100 Original-Received: (qmail 31125 invoked by uid 1000); 26 Nov 2022 15:09:07 -0000 Content-Disposition: inline In-Reply-To: <87wn7lm1o4.fsf@gmail.com> 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:249105 Archived-At: Hello, Sujith. On Thu, Nov 24, 2022 at 09:32:03 +0530, Sujith Manoharan wrote: > Opening this header file with lots of macros makes Emacs > very slow. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h > Same behavior is seen with other header files inside asic_reg. > Fontification/scrolling hangs Emacs and it becomes unusable. Thanks for taking the trouble to report this bug, and sorry for the irritation it has caused. > Bug #25706 suggested the workaround 'fast-but-imprecise-scrolling', > but enabling it doesn't seem to improve things now. I think the bug has already been fixed, coincidentally on Thursday, by the following commit to master: commit 3208a42c47c4f98cb03c4b15164ca83113244b40 Author: Alan Mackenzie Date: Thu Nov 24 10:51:03 2022 +0000 CC Mode: Make it scroll fast over buffers with only #define's , committed just a few hours after you reported the bug. I have a test script which scrolls all the way through a file, timing how long it takes. Before the above commit, it took ~1524 seconds on dce_12-0_sh_mask.h, after the commit, it took ~31.4 seconds. Would you please update your Emacs version, and see if this commit has indeed resolved the problem, then let us know. Thanks! > In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.17.6, Xaw scroll bars) of 2022-11-24 built on comp-lnx > Repository revision: b37604c263e4813dc2a8b80e4e9131a3961c4f3e > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 > System Description: Arch Linux [ .... ] -- Alan Mackenzie (Nuremberg, Germany).