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: Thu, 3 Dec 2020 15:03:27 +0100 Message-ID: References: <27B320DF-8102-4CDF-8C6A-7157EEAACF64@acm.org> <956BCA08-0376-4FAD-B1F7-2087C03F6181@acm.org> <53CC4F6E-716E-4D4B-8903-F32CCB676163@acm.org> 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="32974"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 25706@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 03 15:04:21 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 1kkpDZ-0008Sg-Dp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 15:04:21 +0100 Original-Received: from localhost ([::1]:50674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkpDY-0006b9-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 09:04:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkpDG-0006Y2-RH for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 09:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkpDG-00071R-Ia; Thu, 03 Dec 2020 09:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkpDG-0008Hw-CW; Thu, 03 Dec 2020 09:04:02 -0500 X-Loop: help-debbugs@gnu.org 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: Thu, 03 Dec 2020 14:04: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.160700422131833 (code B ref 25706); Thu, 03 Dec 2020 14:04:02 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 3 Dec 2020 14:03:41 +0000 Original-Received: from localhost ([127.0.0.1]:38976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkpCu-0008HN-VS for submit@debbugs.gnu.org; Thu, 03 Dec 2020 09:03:41 -0500 Original-Received: from mail1450c50.megamailservers.eu ([91.136.14.50]:34388 helo=mail265c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkpCs-0008H7-3u for 25706@debbugs.gnu.org; Thu, 03 Dec 2020 09:03:39 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1607004210; bh=Ezm/3pAi/PUNA4f1EUfPIAjXOPQqVHQ6EKXmO9GYGrs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Nysnbk3LKr4yV724I+UmJVl19fWtEgNJ/Tzqs5G2XasrU2AwDq0p8RqmJywEjOFB8 n01Y1RwmJFOZ2mbrCT9UdpPt5zLMHHsz3ZbEo/T5YQXzufuC6mrCt0+ipOdvX0f6zw hkw01hVV2A8lxNatThgfwdo8sXccU3TeGoU8vGGY= 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 mail265c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 0B3E3SVB023879; Thu, 3 Dec 2020 14:03:29 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A782F15.5FC8F032.0092, 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=QoAgIm6d c=1 sm=1 tr=0 a=Ni+dBsiEfW2GqKMPYZim9A==:117 a=Ni+dBsiEfW2GqKMPYZim9A==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=NNVX2SeRWPu69_cNSOAA:9 a=CjuIK1q_8ugA:10 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086: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:194901 Archived-At: 3 dec. 2020 kl. 11.48 skrev Alan Mackenzie : > I've found it. There was a "harmless" c-backward-syntactic-ws = invocation > in c-determine-limit. This macro moves back over syntactic = whitespace, > which includes macros. So this was going back all the way to BOB, = from > which we scanned forward again. Not bad. Now Emacs starts becoming usable for real code! I can confirm a big subjective improvement on several big = preprocessor-heavy files, and measurements agree. > It now takes me just under 6 minutes to (time-scroll) through the = entire > buffer, compared with a previous hour. As already mentioned, it is = still > slightly more sluggish near the end of the buffer than near the start. Is that with or without my regexp patch? It looks like there may be more regexp improvements possible. We can = take a closer look later on, when the running time is less dominated by = other issues.