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: Tue, 8 Dec 2020 20:32:12 +0100 Message-ID: References: <956BCA08-0376-4FAD-B1F7-2087C03F6181@acm.org> <53CC4F6E-716E-4D4B-8903-F32CCB676163@acm.org> <05F2A660-A403-4B81-AE77-416A739160A7@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="5932"; 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 Tue Dec 08 20:33:44 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 1kmik4-0001SU-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 20:33:44 +0100 Original-Received: from localhost ([::1]:56836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmik3-0004Mm-IG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 14:33:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmijP-0004Kr-3W for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 14:33:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmijN-0004SH-S2; Tue, 08 Dec 2020 14:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmijN-0004x7-O6; Tue, 08 Dec 2020 14:33:01 -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: Tue, 08 Dec 2020 19:33:01 +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.160745594518991 (code B ref 25706); Tue, 08 Dec 2020 19:33:01 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 8 Dec 2020 19:32:25 +0000 Original-Received: from localhost ([127.0.0.1]:59855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmiin-0004wF-An for submit@debbugs.gnu.org; Tue, 08 Dec 2020 14:32:25 -0500 Original-Received: from mail1471c50.megamailservers.eu ([91.136.14.71]:57606 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmiik-0004vw-Ci for 25706@debbugs.gnu.org; Tue, 08 Dec 2020 14:32:23 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1607455935; bh=UyBo6mGK1x0hM7TVIXDtBqWh4Kma9DRhiBic9ICF/LE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=sWsyGzrc/dRAUg34OSiB5OLcWSPX4B5dRyXwlpCwmZb5SwcP5Erumyfi7wij7v6cA +mqj0UjSETfPzPM0dkx7Vkmx/4P4H/PgSA2JtAOronNe3NrTxFKju1tbHzbVxidGHS 8+aoF/YWRq7E+0TygKaQ9DGNERztxf8gHU9pr5ho= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 0B8JWDug010399; Tue, 8 Dec 2020 19:32:14 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A782F1B.5FCFD4BF.0053, 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=d6CLNirE c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=ZHeLkpBn3im8KN_Cl_kA:9 a=CjuIK1q_8ugA:10 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:195433 Archived-At: Hello Alan, 8 dec. 2020 kl. 19.42 skrev Alan Mackenzie : > That's 133,000 lines, give or take. Even our largest file, > src/xdisp.c is only 36,000 lines. I don't understand how a file > describing hardware can come to anything like 133k lines. It must be > soul destroying to have to write a driver based on a file like this. > That file was put together by AMD, and I suspect they didn't take all > that much care to make it usable. Those files are likely not hand-written but generated from a hardware = description language where device registers are declared in more = comfortable ways, and often are part of or at least have tie-ins to VLSI = synthesis tools. Nevertheless, there are quite big files that are crafted by hand, and in = any case users need to look at them sooner or later in an editor anyway = (hence the bug report), so the speed-up job here is essential and = benefits everyone. > There's one thing which still puzzles me. In osprey_reg....h, when > scrolling through it (e.g. with (time-scroll)), it stutters markedly = at > around 13% of the way through. Tried applying my regexp patch? It should reduce the pain, which may = indicate that the stuttering is caused by severe regexp backtracking = effects. > Anyhow, please try out the (?)final version of my patch before I = commit > it and close the bug. It should apply cleanly to the master branch. = I > might well split it into three changes, two small, one large, since > there are, in a sense three distinct fixes there. Thank you very much, I'll take a look, and as promised I'll put together = a more detailed guide to what I think could be done about some of the = regexps.