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.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Sat, 23 Jul 2022 19:15:26 +0300 Message-ID: <83y1wjhkkh.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 18:16:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oFHnX-0002wc-On for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 18:16:11 +0200 Original-Received: from localhost ([::1]:36104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFHnW-0007Ys-CB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 12:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHnO-0007Ye-T0 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFHnO-0008UB-Ke for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFHnO-0000vZ-FE for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.16585929403527 (code B ref 56682); Sat, 23 Jul 2022 16:16:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 16:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:46136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFHn2-0000uo-Er for submit@debbugs.gnu.org; Sat, 23 Jul 2022 12:15:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFHn1-0000uc-EI for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 12:15:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHmq-0008CR-Tr; Sat, 23 Jul 2022 12:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ys1R5VH7IzzYnMUtTpPof32TSi/DU5azOgF78dJB504=; b=lKvBurlQMyPh z/2kVehNj032RmCKIwwjjLXhoSM7I7kb6mqV8e+Q3LMlZgLBeYYUuZqkdDi1/XCYpA2ksxa3PwZOt oGgIsI5v5wXVM/ApaD90qL4m263dfcRn/79Q5EEFJhtyzRSIrOezOyM2v1GSCX95Z/fvWdtqA0FBy KjQGpR4j1BfpAC8PR6FWSpFaXR0gYtsJ1ieL9n5fJ/m/NuD7RaNGY19s/97uq6SP6b/kItFB+BmeD mgABwYJYxNRmE2EWa5ccMX4kHr/XSaIMZw+toG9/WssIB55FFRH6VQA1cvhd+it9zIDFMCLlWI7IK u7Y3tkU5H1hDASK3MOPMFA==; Original-Received: from [87.69.77.57] (port=4343 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 1oFHmq-0002rW-76; Sat, 23 Jul 2022 12:15:28 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 23 Jul 2022 11:46:37 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237767 Archived-At: > From: Stefan Monnier > Cc: gregory@heytings.org, 56682@debbugs.gnu.org > Date: Sat, 23 Jul 2022 11:46:37 -0400 > > >> AFAIK if the buffer has not been modified (including things like > >> changing `window-start` or `point`), then a redisplay will just not > >> run jit-lock (and hence font-lock) at all, no matter how thorough. > > But the fact is without font-lock the response is faster by a large > > factor. So something, somewhere, still depends on font-lock. > > Yes, that's the part that we need to explore. > Maybe font-lock *is* run somehow? > Or maybe it's just the mere presence of text properties? (Or overlays?) My bet is indeed on the mere presence of text properties, plus the fact that we need to merge faces. But I could well be wrong.