From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23476: Slowdown in C Mode fontification [Was: bug#23476: 25.0.93; Visiting C files on master signals an error] Date: Tue, 10 May 2016 19:04:28 +0300 Message-ID: <8337ppdhmb.fsf@gnu.org> References: <83mvo1enoe.fsf@gnu.org> <20160507185225.GB3660@acm.fritz.box> <83lh3lelw1.fsf@gnu.org> <83k2j5ekdc.fsf@gnu.org> <20160507204022.GE3660@acm.fritz.box> <83inyoeek8.fsf@gnu.org> <20160509110713.GA5316@acm.fritz.box> <83shxrcgxz.fsf@gnu.org> <20160509182206.GC5316@acm.fritz.box> <83eg9bcai5.fsf@gnu.org> <20160510075132.GA1923@acm.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462896494 20961 80.91.229.3 (10 May 2016 16:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 May 2016 16:08:14 +0000 (UTC) Cc: 23476@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 10 18:08:02 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0ACX-0001x7-55 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2016 18:08:01 +0200 Original-Received: from localhost ([::1]:47331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0ACV-0004hH-DX for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2016 12:07:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0A9k-00080J-QI for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 12:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0A9e-0007Re-0q for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 12:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0A9d-0007Ra-UC for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 12:05:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b0A9d-0001XK-Oe for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 12:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2016 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23476-submit@debbugs.gnu.org id=B23476.14628962755871 (code B ref 23476); Tue, 10 May 2016 16:05:01 +0000 Original-Received: (at 23476) by debbugs.gnu.org; 10 May 2016 16:04:35 +0000 Original-Received: from localhost ([127.0.0.1]:46072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0A9D-0001Wd-8f for submit@debbugs.gnu.org; Tue, 10 May 2016 12:04:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0A9A-0001WM-O1 for 23476@debbugs.gnu.org; Tue, 10 May 2016 12:04:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0A92-0007Ck-Bt for 23476@debbugs.gnu.org; Tue, 10 May 2016 12:04:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0A92-0007Ca-8n; Tue, 10 May 2016 12:04:24 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2803 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b0A90-0006F1-Px; Tue, 10 May 2016 12:04:23 -0400 In-reply-to: <20160510075132.GA1923@acm.fritz.box> (message from Alan Mackenzie on Tue, 10 May 2016 07:51:32 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118066 Archived-At: > Date: Tue, 10 May 2016 07:51:32 +0000 > Cc: 23476@debbugs.gnu.org, Glenn Morris > From: Alan Mackenzie > > > Btw, I noticed that CC Mode is quite a bit slower on master than it is > > on emacs-25 (try searching for "IF_LINT" in xdisp.c), is that related > > to these changes in any way? > > Whoops! No, this slowdown is caused by commit > 89d1776b81ab552192ee41f13ce84ff86bda4556 on 2016-04-25, a fix for bug > #7918. The bug was the spurious fontification of something like "for (; > a * b;)". > > I'll see if I can find a better fix; if not, it would probably be best to > remove the commit and leave the bug unfixed. Since this is only on master (right?), there's no rush to revert the commit, perhaps you or someone else will come up with a solution that doesn't bring back bug #7918. Thanks.