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, 14 Aug 2022 08:36:31 +0300 Message-ID: <83lerrl734.fsf@gnu.org> References: <834jyq29o1.fsf@gnu.org> <92da07bd028e3ede61a6@heytings.org> <47894c57-dd8b-5778-240a-3fa6540e4d37@yandex.ru> <92da07bd02941d5537e9@heytings.org> <5308e3b5-a160-17d7-77ee-b1d00acfa20d@yandex.ru> <92da07bd02a6cc861e1a@heytings.org> <837d3lzv8n.fsf@gnu.org> <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <66bbbb95983475c5f3b0@heytings.org> <0d67f253-c080-d750-c2cb-4a9591ff8c6c@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14782"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 14 07:39:40 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 1oN6Lb-0003ea-JM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 07:39:39 +0200 Original-Received: from localhost ([::1]:60234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oN6La-00022o-88 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 01:39:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oN6K2-00021A-HM for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oN6K2-0003v1-6r for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oN6K2-0006RE-0y for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:38: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, 14 Aug 2022 05:38:01 +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.166045542724669 (code B ref 56682); Sun, 14 Aug 2022 05:38:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 14 Aug 2022 05:37:07 +0000 Original-Received: from localhost ([127.0.0.1]:35642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oN6J8-0006Pp-Rf for submit@debbugs.gnu.org; Sun, 14 Aug 2022 01:37:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oN6Iy-0006PC-Ih for 56682@debbugs.gnu.org; Sun, 14 Aug 2022 01:37:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oN6It-0003hk-8M; Sun, 14 Aug 2022 01:36:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=hQo866x+sbCTztv3MoZmohQwNR9bxJk2XAYS8kC7xN0=; b=OB9kmTd2RBVWo2bc2DLV 4aoWpZI/QsJCX/0auXoeWbAXOY1zlSabzurE6dl6/OVMJLgh/PDZzNyFLcEFoVW9nsoU7Ax0nKPbP BKkfRBS8KmVodwpA3GPugzfXxY4bBhCIh6fiOtdv8DLpyQzzZ/FNGJvgZemW3wbR0Cyl3UYbroRwj FsC1OLp2TOkcrHU7UboZQxTlQlOOjYJCduwE3VlNR/jZP/CEVwbHqIBxR3Ux93X7/V1hsvcKRbDUz DyuBZoosviSueTd+QCdKyWum++oynD/L+FkcjQ3gSSHW4ROYEvzakYFwmadlTN76UKDBcqPdrnIhF RPMzaRkZMGUI2w==; Original-Received: from [87.69.77.57] (port=4189 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 1oN6Ip-0004UN-El; Sun, 14 Aug 2022 01:36:51 -0400 In-Reply-To: <0d67f253-c080-d750-c2cb-4a9591ff8c6c@yandex.ru> (message from Dmitry Gutov on Sat, 13 Aug 2022 22:19:26 +0300) 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:239616 Archived-At: > Date: Sat, 13 Aug 2022 22:19:26 +0300 > Cc: 56682@debbugs.gnu.org, Eli Zaretskii , > monnier@iro.umontreal.ca > From: Dmitry Gutov > > > Buffers with long lines are rare enough.  It wouldn't make sense (and > > would be a nightmare in terms of long term maintenance) to add 25 > > defcustoms to allow anyone to fine-tune what Emacs does in such buffers. > > I have regularly encountered redisplay slowdown caused by long lines in > my work. One doesn't need to have a 18 MB files to see them. > > Having a 5000-10000 character line is enough to see redisplay starting > to stutter. And, of course, there's nothing font-lock related in those > stutters. Stuttering in redisplay (and I think you actually mean stuttering in cursor motion commands, but let's ignore that difference for now) is a known issue, but it is NOT the goal of this effort. The goal of this effort is to avoid making Emacs _completely_unusable_ due to the need to wait for many seconds for commands to complete and their results to be shown on display. Stuttering, while somewhat annoying, doesn't make Emacs unusable. So if you are talking about the cases of stuttering, you are focused on cases that are of no particular interest to us here. Of course, any improvement in those other cases will also be welcome, but it is not directly related to what we are trying to do here, and may or may not solve the cases that are of interest to us.