From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#25706: 26.0.50; Slow C file fontification Date: Mon, 30 Nov 2020 13:46:30 +0100 Message-ID: <55C404DC-1C29-449F-9A49-B20EDFFCFCEA@acm.org> References: <87inoe2brv.fsf@the-damned> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27952"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Lars Ingebrigtsen To: 25706@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 13:52:32 2020 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 1kjifQ-0007BP-LR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 13:52:32 +0100 Original-Received: from localhost ([::1]:33838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjifP-000751-LG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 07:52:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjiaB-0001oO-FU for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 07:47:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjia6-0008Pl-LW; Mon, 30 Nov 2020 07:47:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjia6-0001Qu-J8; Mon, 30 Nov 2020 07:47:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87inoe2brv.fsf@the-damned> Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 30 Nov 2020 12:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25706 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 25706-submit@debbugs.gnu.org id=B25706.16067404034544 (code B ref 25706); Mon, 30 Nov 2020 12:47:02 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 30 Nov 2020 12:46:43 +0000 Original-Received: from localhost ([127.0.0.1]:54063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjiZm-0001B1-JW for submit@debbugs.gnu.org; Mon, 30 Nov 2020 07:46:42 -0500 Original-Received: from mail1434c50.megamailservers.eu ([91.136.14.34]:58934 helo=mail263c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjiZk-00013c-BL for 25706@debbugs.gnu.org; Mon, 30 Nov 2020 07:46:41 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1606740393; bh=y+i0k2qTXCpeBHbnPbl7JPJdRi7rmozRXK4VSSqxYjc=; h=From:Subject:Date:Cc:To:From; b=I2SqDGypr/5CEYwr5ANwxEBfha/Fm3BmkFhSBZ4fpm2O4P+97RqyWX7DzZacegr+c 4An+51rvL6fbySvsTKASB5MkPHWw3yqRzm7U7of6g3F57bKnzjB05u9wVWjlObFf82 lCVseLU2urE8OAJL+At1r6H7lp1HnmrKV7RcGCbQ= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-064ae655.032-75-73746f71.bbcust.telenor.se [85.230.74.6]) (authenticated bits=0) by mail263c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 0AUCkVIw031541; Mon, 30 Nov 2020 12:46:33 +0000 X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A782F25.5FC4E9A9.0088, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=WbZylHpX c=1 sm=1 tr=0 a=Ni+dBsiEfW2GqKMPYZim9A==:117 a=Ni+dBsiEfW2GqKMPYZim9A==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=dMsofFHgAAAA:20 a=vAoEFO4gH2-s3rOhQycA:9 a=CjuIK1q_8ugA:10 a=5TIxfdQgGKs3YlBIMbOX:22 X-Origin-Country: SE 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" Xref: news.gmane.io gmane.emacs.bugs:194628 Archived-At: >> = https://raw.githubusercontent.com/qca/qcamain_open_hal_public/master/hal/a= r9300/osprey_reg_map_macro.h >=20 > I tried reproducing this on a pretty new laptop, and opening the file = in > question (with your settings) took less than a second with Emacs 28. My lappy is less new but not really that slow -- compared to the = hardware of the original reporter it's a speed demon -- but opening the file takes almost 4 s here. More importantly, scrolling = through the file is painfully slow. The code in the file is nothing out of the ordinary; it consists of = macros that are 1-3 lines each; definitely not a pathological case. The = entire fontification takes 64 s for this file. I'd say the complaint is warranted, even if the original reporter is no = longer reachable. Reopen? Alan, do you have a diagnose?