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#52298: 29.0.50; Frequent redisplay cycles induced by c-type-finder-timer-func timer in CC Mode Date: Mon, 13 Dec 2021 14:25:20 +0000 Message-ID: References: <83tuffr2qd.fsf@gnu.org> <83zgp7p2x1.fsf@gnu.org> <83v8zvovcw.fsf@gnu.org> <837dcap4jt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="977"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 52298@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 13 15:26:18 2021 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 1mwmHS-000Abg-36 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 15:26:18 +0100 Original-Received: from localhost ([::1]:36594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwmHQ-0005Hg-3G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 09:26:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwmHC-0005HD-Cm for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 09:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwmHC-0004no-3j for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 09:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwmHB-00036w-UL for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 09:26: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: Mon, 13 Dec 2021 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52298 X-GNU-PR-Package: emacs Original-Received: via spool by 52298-submit@debbugs.gnu.org id=B52298.163940553211913 (code B ref 52298); Mon, 13 Dec 2021 14:26:01 +0000 Original-Received: (at 52298) by debbugs.gnu.org; 13 Dec 2021 14:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:54477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwmGi-000365-3C for submit@debbugs.gnu.org; Mon, 13 Dec 2021 09:25:32 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:34538 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1mwmGe-00035o-MN for 52298@debbugs.gnu.org; Mon, 13 Dec 2021 09:25:30 -0500 Original-Received: (qmail 35979 invoked by uid 3782); 13 Dec 2021 14:25:22 -0000 Original-Received: from acm.muc.de (p4fe15a61.dip0.t-ipconnect.de [79.225.90.97]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 13 Dec 2021 15:25:21 +0100 Original-Received: (qmail 18075 invoked by uid 1000); 13 Dec 2021 14:25:20 -0000 Content-Disposition: inline In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:222317 Archived-At: Hello, Daniel. On Mon, Dec 13, 2021 at 00:31:38 +0100, Daniel Martín wrote: > Alan Mackenzie writes: > > This particular feature simply hasn't worked out well. If the > > background scanning were to complete in a few seconds, it wouldn't > > be too bad. But nearly two minutes on a modern (well, 4½ yo) > > machine for just one buffer, with the annoyance of the "stuttering", > > is not worth the gain. > If you want another data point, on my 2017 MacBook Pro visiting xdisp.c > took 1:30 min of background work (using 25% of the CPU). Thanks, that's helpful. It confirms that the slow background fontification check is real, not just an artifact of my current set up. > Is it possible to make the feature optional, even for the default > font-lock decoration level in CC mode? So only the people that want > more accurate highlighting of types pay the cost of this background > work. It would be possible, but I don't think it would be a good idea. People generally tend to stay unaware of this sort of option (how many people know about stealth fontification, for example?), and the cost of maintaining it is fairly high. I still think the best thing to do is to rip it out. It was a worthwhile experiment, but one which didn't deliver the desired result. -- Alan Mackenzie (Nuremberg, Germany).