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: Mon, 06 Sep 2021 14:10:54 +0300 Message-ID: <838s0armbl.fsf@gnu.org> References: <837dfwyird.fsf@gnu.org> <835yvgwdxb.fsf@gnu.org> <8335qkwddv.fsf@gnu.org> <83wnnwuxkj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 06 13:11:39 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 1mNCXK-000053-8i for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 13:11:38 +0200 Original-Received: from localhost ([::1]:42296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNCXJ-0000UH-33 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 07:11:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNCWb-0008DJ-Dl for emacs-devel@gnu.org; Mon, 06 Sep 2021 07:10:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35862) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNCWZ-0004hK-QK; Mon, 06 Sep 2021 07:10:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4672 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 1mNCWY-0007wF-NK; Mon, 06 Sep 2021 07:10:51 -0400 In-Reply-To: (message from Alan Mackenzie on Mon, 6 Sep 2021 10:46:48 +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:274105 Archived-At: > Date: Mon, 6 Sep 2021 10:46:48 +0000 > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Alan Mackenzie > > I think the optimal size for jit-lock-chunk-size is a little over how > much text fits in a window. That way, an entire window can be fontified > in a single chunk, minimising overhead. However, much more than that, > and the fontification is less JIT, more like fontifying large chunks of > a buffer just in case. > > So, I propose a default value of 2000. Approximately 1700 characters of > xdisp.c fit into a default sized GUI window. Not here. I only get 1300. In any case, can we please perform the single-windowful scroll benchmark before making the decision? Doing this stuff from intuition is known to be a bad idea. > +The optimum value is a little over the typical number of buffer > +characters which fit in a window." "in a typical window", probably, since not all windows are created equal, and in general the frames aren't always single-windowed.