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: Sat, 04 Sep 2021 09:13:40 +0300 Message-ID: <835yvgyijv.fsf@gnu.org> References: <838s0eyyjg.fsf@gnu.org> <83eea5ygub.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 04 08:14:35 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 1mMOwk-0005FU-7r for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 08:14:34 +0200 Original-Received: from localhost ([::1]:39502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMOwj-0008DK-0J for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 02:14:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMOvw-0007Wp-2y for emacs-devel@gnu.org; Sat, 04 Sep 2021 02:13:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51132) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMOvu-0006cc-Vn; Sat, 04 Sep 2021 02:13:42 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3176 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 1mMOvs-00057f-QA; Sat, 04 Sep 2021 02:13:42 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 03 Sep 2021 18:25:36 -0400) 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:273838 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Fri, 03 Sep 2021 18:25:36 -0400 > > > But it does change the result. > > It changes the overall behavior a bit, yes. And of course, that might > trigger bugs somewhere, like any other change. But other than that, it > should not change the actual final result other than how fast we get to > it, no. I'm looking at this from the POV of someone who writes a function to be registered with JIT font-lock. They need to understand these details to be able to write code which will do what they want. > > Users of `jit-lock-bounds` should definitely know the importance of > > being "the first function". > > Actually, we could refine the patch to make the ordering automatic, > based on measurements so the users of `jit-lock-register` don't need to > know about it. They would still know about the automatic ordering because if some other function gets put at the first place, the results will be different, and that needs to be explained.