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: Sun, 12 Sep 2021 20:55:41 +0300 Message-ID: <831r5tfzky.fsf@gnu.org> References: <837dfwyird.fsf@gnu.org> <83tuj0ux6y.fsf@gnu.org> <83pmtouul2.fsf@gnu.org> <83k0jwus8w.fsf@gnu.org> <83k0jngtub.fsf@gnu.org> <837dfnghgi.fsf@gnu.org> <835yv7gep6.fsf@gnu.org> <83wnnmfo3j.fsf@gnu.org> <834kapg2g9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29583"; 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 Sun Sep 12 19:56:40 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 1mPTia-0007T9-1a for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 19:56:40 +0200 Original-Received: from localhost ([::1]:42850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPTiX-0004Wd-M9 for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 13:56:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPThq-00036r-HC for emacs-devel@gnu.org; Sun, 12 Sep 2021 13:55:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36282) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPThp-0005mB-4p; Sun, 12 Sep 2021 13:55:53 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1398 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 1mPTho-00072z-OL; Sun, 12 Sep 2021 13:55:53 -0400 In-Reply-To: (message from Stefan Monnier on Sun, 12 Sep 2021 13:41:05 -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:274605 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Sun, 12 Sep 2021 13:41:05 -0400 > > > Yes, of course. Which is why I think that having the entire code > > hidden is a rare phenomenon, even in your sessions. Because once you > > visit a file, you usually reveal the code, in order to work on it. > > Right, but the big gain is right when I open the file, where jit-lock > only fontifies a handful of chunks even though often both point-min and > point-max are visible. I think the gain is illusory, because as soon as you unhide the code, we start fontifying everything as usual. IOW, hiding text is for this purpose the same as simply leaving it off-screen.