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:04:53 +0200 Message-ID: <8735e4w8p6.fsf@gmx.net> References: <83edxuzemr.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32692"; 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 15:26:14 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 1oLliw-0008LN-Cy for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 15:26:14 +0200 Original-Received: from localhost ([::1]:60184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLliv-0006C0-84 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 09:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLlPP-00028s-2O for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:06:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLlPO-0002GV-PR for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLlPO-0002kW-Ei for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 09:06: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:06: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.166013670710500 (code B ref 56682); Wed, 10 Aug 2022 13:06:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 10 Aug 2022 13:05:07 +0000 Original-Received: from localhost ([127.0.0.1]:46863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLlOV-0002jH-GB for submit@debbugs.gnu.org; Wed, 10 Aug 2022 09:05:07 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:57567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLlOS-0002ig-3g for 56682@debbugs.gnu.org; Wed, 10 Aug 2022 09:05:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1660136694; bh=OQUUIp0P5+zMzTU1Etd8QLVmhKtZjK8H/O4T5JTMo8c=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=QId/eyeo5ulziVZYwnLqCY+3C6I9TWB25quCJrraIgbVWTVsPyllCDcFL49wp9bb/ wTaZpBxzXv2CHxnEfFfOCwanflGqvC/TnGV3l6P7l2AiWU1gGVgnE/MZ519jT9pTTc DCgYodQuuPba8GlpmWcRVOHOH5U8DUgp4koPBOo8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.16]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MHGCo-1o8Xxu2Smm-00DDfz; Wed, 10 Aug 2022 15:04:54 +0200 In-Reply-To: (Gregory Heytings's message of "Wed, 10 Aug 2022 12:48:49 +0000") X-Provags-ID: V03:K1:yBuyKAyxmbtuuRfNb0yLhzgsAe9JMYOBMz9EpRCPUCOEd2zie/e D/igmT6DqxCqdM1MOO2SlppDIntmlBXYgOngyGNnib/S2ZKz63gtf407ulNxV6BEEWcihag HvKW+1L5A5sY23i3j5+byIxrW06D3/Pioy4LAD+W9B2rsBPAPHFOGsO4Bek2UCCHEH5QM7B 0aAt7mnsB8Ix5l6XPJeVw== X-UI-Out-Filterresults: notjunk:1;V03:K0:jZ+C4N+eA9E=:/BPdttr2TpI6S3s/sH1la7 +sPPdY7fo/2Uy3/K0dniqjt2ZT+bmChf/EVUUYZjWWTP41MNJQMAoXZFNr3cN/eeCtsIcJl54 MeS+2O0o4vq0lCbQADWl9hhHnOy2qWOrl7WoysNEB5U/tsG7XyFb8Kg80ncThTvhKLuRpfQuN 91kUqlalrGujgkxaVhcHHblAPto2rObSCJunIROSw51jZc8VsqmNHwOrmoKa34XMMd7cPa8ii Xr4ek+sz0bAITJVA5BvqAwWPrVJeogWK3V3am9t1+xNsq70monuaoFvOnkhqJHAyTJIGbSUDs HPXPNbzPw5fYUS6q0XSKgsUnDOerRJBUAt/pCVZfL8/Ok18KPY176xUdXr5cMzAj+YnB8W3iW CEC+yfgDbgDq2+wNEyC45hEK1Y5wbLvHyMm/4YRToSllGL9HXE3gm1zRQMq0FOEep3r9fppN3 6tdulFLMTSfv4rq+ltiYQSES6wjVF7gyuW23Q91spW7xoEOFtCY4PxYGT/08o1P0BImnOzvDp tbDKwE+WTVdW0N8Ra97PWJZkbqDpS584GFCS1LvGRU4qasRnTWbrQ3KiN4U6gz6Y+uK/lkB27 ZtPlQgGsAkg9gnGZLsYQ2r0uRGGtjIfWk3D/xPtSW8jnFfoel0hEvpl8CGB6dhXLhXyUCqywY Ydao9y4wFja5pXVGAVKXQdbOb1q2gBGV7Q9TipdUXJvs+bcpl1wpL1kQ6FMW0hLbmhJk0+m0a ngbool+SZcV1hljeONIVgO8QEzLKZCUJhIdraWUztHH6XO1S/AyzEpFkxDd9vjiL21AC8NUG 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:239292 Archived-At: On Wed, 10 Aug 2022 12:48:49 +0000 Gregory Heytings wrote: >>>> If you remove the 3 closing braces/brackets at EOB and the corresponding >>>> opening braces/brackets, does navigation become significantly faster? >>> >>> Yes, removing the 3 brackets at positions 1, 22, 23 and 19538, 19539 and >>> 19540 solves that problem. In fact, just removing the brackets at 1, 22 >>> and 23 solves that problem. You can see the same problem in >>> dictionary.json, just removing the first character makes C-n and C-p faster >>> at BOB. >> >> Stephen said it had a much smaller effect than inhibiting the BPA. But yes, >> very long bracketed text segments could be a problem. >> > > 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). Steve Berman