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 14:11:28 +0000 Message-ID: References: <87wn7lm1o4.fsf@gmail.com> <83a64et1v5.fsf@gnu.org> 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="33743"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sujith Manoharan , 59530@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 15:12:17 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 1oyvuj-0008Yz-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 15:12:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyvuZ-0006Kc-3n; Sat, 26 Nov 2022 09:12:07 -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 1oyvuU-0006Jf-68 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 09:12:02 -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 1oyvuT-0007Ab-Tz for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 09:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyvuT-0004oS-LZ for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 09:12:01 -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 14:12:01 +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.166947190118471 (code B ref 59530); Sat, 26 Nov 2022 14:12:01 +0000 Original-Received: (at 59530) by debbugs.gnu.org; 26 Nov 2022 14:11:41 +0000 Original-Received: from localhost ([127.0.0.1]:38271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyvu9-0004nr-Iq for submit@debbugs.gnu.org; Sat, 26 Nov 2022 09:11:41 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]:27550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyvu6-0004nc-L3 for 59530@debbugs.gnu.org; Sat, 26 Nov 2022 09:11:40 -0500 Original-Received: (qmail 19855 invoked by uid 3782); 26 Nov 2022 15:11:30 +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 15:11:30 +0100 Original-Received: (qmail 7471 invoked by uid 1000); 26 Nov 2022 14:11:28 -0000 Content-Disposition: inline In-Reply-To: <83a64et1v5.fsf@gnu.org> 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:249089 Archived-At: Hello, Eli. On Sat, Nov 26, 2022 at 13:02:38 +0200, Eli Zaretskii wrote: > > From: Sujith Manoharan > > Date: Thu, 24 Nov 2022 09:32:03 +0530 > > 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. > > Bug #25706 suggested the workaround 'fast-but-imprecise-scrolling', > > but enabling it doesn't seem to improve things now. > Alan, did you see this bug report? I hadn't, no, but I think it's already been fixed by the following commit: 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 The OP's test file was around 6 MB big. When I scrolled all the way through it, it took around 32 seconds. I'll look into this more carefully, and get in touch with the OP. Thanks! -- Alan Mackenzie (Nuremberg, Germany).