From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Wed, 10 Aug 2022 15:29:44 +0200 Message-ID: <87y1vwuszb.fsf@gmx.net> References: <83a68hzz0a.fsf@gnu.org> <6ae35c93062c589b2e02@heytings.org> <7b7fbad7-55ac-49b8-840f-7f89a7e8771a@yandex.ru> <6ae35c93064b3588974c@heytings.org> <6ae35c9306c515f420d8@heytings.org> <87k07gwkjq.fsf@gmx.net> <87fsi4wiel.fsf@gmx.net> <837d3gs4p0.fsf@gnu.org> <83tu6kqnf1.fsf@gnu.org> <8735e4w8p6.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca, dgutov@yandex.ru To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 10 16:18:07 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 1oLmX7-0003m1-St for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 16:18:05 +0200 Original-Received: from localhost ([::1]:50234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLmX6-0004rB-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 10:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLlmd-00086g-4o for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLlmc-00069m-RA for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLlmc-0003Ma-KB for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Aug 2022 13:30: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.166013819812898 (code B ref 56682); Wed, 10 Aug 2022 13:30:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 10 Aug 2022 13:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:46917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLlmY-0003Lx-AW for submit@debbugs.gnu.org; Wed, 10 Aug 2022 09:29:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:34841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLlmT-0003Lf-SW for 56682@debbugs.gnu.org; Wed, 10 Aug 2022 09:29:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1660138186; bh=BGG3HuaA6BD2zWHYBiEGb+lyEOCbDMsiFlUXIvlavIo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=enw2xpVqMZ6COH7l4di2yf0EaW3ZPCmVL7rly9ehGUBtrjj4C9W9Xg3ztk+im7bQQ M4w0vFwyBp4KRQ4WjK/V2Z9Zm6HjMHQTVFEbsS3RQEfNe2kcA8UjxALWHQoWZSKgx5 QkDyXWxNQUtj2gJNoD8iR+D+UxLOf0pJwkKRNmkU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.16]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTRMs-1nyiaj3Qjs-00Thk5; Wed, 10 Aug 2022 15:29:46 +0200 In-Reply-To: (Gregory Heytings's message of "Wed, 10 Aug 2022 13:11:52 +0000") X-Provags-ID: V03:K1:TxRZ8QlEg7Rk1nK5NJmImnj7y5PJLdmgYGPBgOuWiROCAowY8z5 Qte2FRcqh8wwdkLXwZYVdSCMl8TvTP09zVFKKs2rqq/eerwgnvcL6R7lUxNCKwHZuTIkI0G lQW73B6PQRwdOWlBqlU4YR9ja+HcHME7SpFgSEzfTEJw/4DihXtatVilZCe83Bpix4uBUG6 DVzyhY628Ws+wXwVVVnIA== X-UI-Out-Filterresults: notjunk:1;V03:K0:1weEL4iJbTs=:bTSTULSko2rOKG0ZJKaCOt 1xlptaWYwPuW9ticrXGGzSHdarjgScUsQHYjvBUdaY8zYbc09sKGah4le+aOqLMRfgQ7x0gGr R83cqMO0S2YummhX/12+DzGzX6pHkBQB1uaFs90jePl5WIF/7qi8X3WIhHOiU0r+/WhtHPTa4 ZxEewMTdNbLNK6OBba/J2W1dDMRrHWGboHmH7VdGX1c6tP3QAqCkvLtkg/FvamRpouDBWoMK1 H9H6+X6GgyUlaam0gGl7+C1aDUvW0fyevWhoGp3gThbHbw5CbUUbEJIkVGdygByU3HHgvnV28 WSYN8OJ5Xn388d0vcnAiHAItyzO2MTADFT8Tshg8t39IiD/GUtviVWIo2KdkjU4FbvhQ4wuM1 1M5G4PLPm4YbBHIUqoMrmw83YkI77kMUFWfVBLEa7ad4hOYKyE5Ze+GSOEVqZoUVxe7ArBWUZ rz6wjWJB1r2Ymdi490AXge43JBmKHiXsTSrZV32a8l9JZMe0kiXE5BoqqCm6u6md2jUWeqL7I uWT3lUI46jLKOcqfduH1ud80AwtCojsTV6e6ozhxTW7E+L1XVOL+dMdE7SehomohMXndWds7j aRuCpWAhKWHjmI3BEizIwyQ7s535tUAgoAWKMJf2YCT/9zNQx4e4Ms6N1239eKXSND8LAsz0v trPE10RXppyhNxaEDq3l8cX3fwE8VGu7xSPW0RL0/nZ2RmnYDwC4EE46mVWRd2auR3dlOzkjW JsuahH6EyhYD74HLsJiFjbmismG7e9nYjTR8iX+HgF6K8CYKdcyRFlFNu8Y4iYccKHrhX/n/ 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:239301 Archived-At: On Wed, 10 Aug 2022 13:11:52 +0000 Gregory Heytings wrote: >>> I'm not completely sure he did indeed remove those three brackets. Stephen, >>> can you remove the three characters at positions 1, 22 and 23, and try >>> again? These are the first two '{' and the first '[' characters in the >>> buffer. >> >> I did remove those brackets previously; the improvement I see is that, >> without them (and even without removing the corresponding closing brackets >> at the end of the file, and of course with bidi-inhibit-bpa nil), holding >> down `C-n' moves the cursor almost a whole screenful (~60 visual lines) >> before coming to a halt, instead of just three visual lines with the initial >> brackets, and after letting go of `C-n', the cursor catches up to the actual >> position of point noticeably quicker than with the unaltered file. Still, >> the movement is not at all smooth, unlike with bidi-inhibit-bpa non-nil (and >> that is not as smooth as moving through the same file with so-long-mode >> enabled). >> > > Is that with emacs -Q? And with show-paren-mode disabled? I had forgotten to disable show-paren-mode; doing that (with -Q) seems to increase the length of the initial scrolling but it still comes to a halt and there's a delay (though no longer several seconds) before the cursor catches up. Further scrolling in the file seems not to show the same improvement (i.e., scrolling halts again after ~3 visual lines), though the file is too short to do that more than once or twice. Steve Berman