From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7% Date: Wed, 01 Sep 2021 20:44:23 +0300 Message-ID: <83r1e8p4w8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40561"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 01 19:46:04 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mLUJI-000AG5-KQ for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 19:46:04 +0200 Original-Received: from localhost ([::1]:50598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLUJG-0001ay-Mr for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 13:46:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLUHk-0000rK-CY for emacs-devel@gnu.org; Wed, 01 Sep 2021 13:44:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59308) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLUHj-0006vv-P6; Wed, 01 Sep 2021 13:44:27 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2115 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLUHj-0007M9-Cw; Wed, 01 Sep 2021 13:44:27 -0400 In-Reply-To: (message from Alan Mackenzie on Wed, 1 Sep 2021 17:33:06 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273675 Archived-At: > Date: Wed, 1 Sep 2021 17:33:06 +0000 > From: Alan Mackenzie > > When applied to C Mode, bug-reference-prog-mode slows down a scroll from > point-min to point-max by around 7%. > > Just how useful is bug-reference-prog-mode? Is it really worth this 7% > slowdown? It is marginally useful, but 7% slowdown is too heavy a price, IMO. This should be fixed. (I thought that the code in jit-lock.el already handled this case by computing a kind-of "maximum" out of all the return values of jit-lock-functions, and treating a nil return value as expected, but maybe my reading of the code was incorrect?)