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: Sun, 31 Jul 2022 11:38:22 +0300 Message-ID: <83les94qyp.fsf@gnu.org> References: <136c4fe0fc0fceb0d752@heytings.org> <838roc8ka7.fsf@gnu.org> <83tu706obt.fsf@gnu.org> <83h7306ifa.fsf@gnu.org> <83edy37pul.fsf@gnu.org> <83pmhn55sk.fsf@gnu.org> <65cb7c73fdc753518d35@heytings.org> <83fsii68o3.fsf@gnu.org> <65cb7c73fdf6704d19d5@heytings.org> <835yje62vz.fsf@gnu.org> <65cb7c73fd159efe32af@heytings.org> <83zggq4fgb.fsf@gnu.org> <65cb7c73fd6ca16565e1@heytings.org> <83y1wa4e6q.fsf@gnu.org> <65cb7c73fdbf1de53ea7@heytings.org> <83tu6x4xis.fsf@gnu.org> <87edy14rov.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 31 10:39:19 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 1oI4Tm-0003ak-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 10:39:19 +0200 Original-Received: from localhost ([::1]:46532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI4Tl-0005b4-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 04:39:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI4TW-0005Xh-Lc for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 04:39:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oI4TW-0008WD-D9 for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 04:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oI4TW-0006YQ-91 for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 04:39: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: Sun, 31 Jul 2022 08:39: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.165925672425162 (code B ref 56682); Sun, 31 Jul 2022 08:39:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 31 Jul 2022 08:38:44 +0000 Original-Received: from localhost ([127.0.0.1]:36366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oI4TE-0006Xm-0T for submit@debbugs.gnu.org; Sun, 31 Jul 2022 04:38:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oI4TC-0006XY-5I for 56682@debbugs.gnu.org; Sun, 31 Jul 2022 04:38:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI4T6-0008Uf-RM; Sun, 31 Jul 2022 04:38:36 -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=KDnS6fG+lLUKBlx5rdoN6O2pI6Oabfd2Ju2FBXSYgV0=; b=MAIQIlqIunSB HEMEN6EBO9QS/c4tDJL8UuqAAA3MAww+07pIY7vMjTgg+d6QKLLxO0cs8OFUlun/KRGtPVDoKDhEY F6Q8jIkbFlNNiuEsqFYIsHZUX7+AveI96QwQsbdKuaUwI7f/8sck9xrNvlpUsOwpE/byOj9dmOW2A o+Lxua9NrBCScHAoL00CT7FLhmmM0z9MlTx7MrUn/vzVqfLlOJpv5tNj/VLnCM5isXYrIIc47XMQH ikhSYmNYX4Pm77ZUh++MY0cwd3GEMPkdv40uhwc08P39LCOkT15tWaD3u8z8Ek1Fz4QoHtjv+Rgpi cOamiijtVEHZ2p+FdLgDsg==; Original-Received: from [87.69.77.57] (port=4271 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 1oI4T6-00011G-65; Sun, 31 Jul 2022 04:38:36 -0400 In-Reply-To: <87edy14rov.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 31 Jul 2022 10:22:40 +0200) 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:238328 Archived-At: > From: Lars Ingebrigtsen > Cc: Gregory Heytings , gerd.moellmann@gmail.com, > 56682@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Sun, 31 Jul 2022 10:22:40 +0200 > > Eli Zaretskii writes: > > >> It's the same problem than with fontification-functions. We cannot know > >> what all these hooks that are installed by major and minor modes will do, > >> we cannot hope to fix them one by one, so it seems to me that with > >> long_line_optimizations_p, which is an unusual case anyway, it makes sense > >> to "punish" them all in the same way. > > > > It sounds...too drastic. Lars, WDYT? > > I agree with Gregory that it makes sense to disable (some) fontification > stuff in long-line buffers. It much more important to be able to view > and edit these files than getting fontification details completely > correct. No disagreement here, but I was asking about the proposal to make the locked narrowing in effect when any pre-command-hook or post-command-hook runs. These are usually unrelated to fontifications, although Gregory found an example where it is. IOW, the issue for which I wanted to hear your opinion was whether you think it's okay to preclude, in a buffer with long lines, all pre/post-command-hooks from accessing the entire buffer.