From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7% Date: Sun, 12 Sep 2021 17:11:03 -0400 Message-ID: References: <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> <831r5tfzky.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: acm@muc.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 12 23:11:52 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 1mPWlU-0002WW-0l for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 23:11:52 +0200 Original-Received: from localhost ([::1]:47966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPWlS-0007wg-3F for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 17:11:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPWkr-0007I9-8A for emacs-devel@gnu.org; Sun, 12 Sep 2021 17:11:13 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPWkm-0001Hj-UL; Sun, 12 Sep 2021 17:11:12 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 29075440918; Sun, 12 Sep 2021 17:11:06 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CCEC944051B; Sun, 12 Sep 2021 17:11:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1631481064; bh=YBMnZhnaNS6U+NVXk6vWK5B4PZLdjSFvItoQBEiQsS0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Fvyejgzvhdg7m1jF88lq/sicn3yaxm8kknlmVhDAwPFUkQ0olpzP+cTWvF5SOyxhf v3nBfASw5nqhsqjrVdW8sOCLkg109QyAHDF9i9U+VNqJYvKSlZjhtmZkchBulB9kuv sZJ4i00FetOP3OnKTLyJGvt04LTwb8NaGx9VhczOEuDkh24KglczlCl6bdYsyxHU6+ czapE6iP2qTOmtnR5+j03QJ/dFvBgMp1RQO8AiHoYtM09JyxMGJsHoZrunGk9lTc33 WfWONRzCCKDB5jHvSQfocxuBhHLNYeBOgsFw/1mdh0AEE68T+G0Uht8NfLLstQhnxI +bDXUj5v1szHA== Original-Received: from milanesa (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8FAEB1201F4; Sun, 12 Sep 2021 17:11:04 -0400 (EDT) In-Reply-To: <831r5tfzky.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 12 Sep 2021 20:55:41 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:274609 Archived-At: >> 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, No, it makes the buffer display "instantly" instead of taking a few seconds to highlight it from head to toe. > because as soon as you unhide the code, we start fontifying everything > as usual. Just the "one screenful" at a time, so still "instantly". IOW, it makes it work like "jit" intends. > IOW, hiding text is for this purpose the same as simply > leaving it off-screen. I don't know what you mean by that. I use `outline-minor-mode` because I like the way it gives me an overview of the whole buffer (akin to an "in-buffer speedbar"), not because of its interaction with jit/font-lock performance. Stefan