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 10:48:57 +0200 Message-ID: <87k07gwkjq.fsf@gmx.net> References: <83v8rc2n1h.fsf@gnu.org> <64084296-1953-8ef8-5938-adfb6fb9b43f@yandex.ru> <83r11uzs8n.fsf@gnu.org> <14845631-c2ef-8371-8606-c858092e3192@yandex.ru> <83mtcizov2.fsf@gnu.org> <83h72qzheq.fsf@gnu.org> <25717d84-3411-a93a-3620-e04fe0571aff@yandex.ru> <83edxuzemr.fsf@gnu.org> <83a68hzz0a.fsf@gnu.org> <6ae35c93062c589b2e02@heytings.org> <7b7fbad7-55ac-49b8-840f-7f89a7e8771a@yandex.ru> <6ae35c93064b3588974c@heytings.org> <6ae35c9306c515f420d8@heytings.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="30802"; 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, Dmitry Gutov To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 10 10:50:17 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 1oLhPs-0007nD-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 10:50:16 +0200 Original-Received: from localhost ([::1]:57364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLhPq-0005Nn-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 04:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLhPe-0005MW-IS for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 04:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLhPe-0005Db-1V for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 04:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLhPd-000894-SU for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 04:50:01 -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 08:50: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.166012135331248 (code B ref 56682); Wed, 10 Aug 2022 08:50:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 10 Aug 2022 08:49:13 +0000 Original-Received: from localhost ([127.0.0.1]:46023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLhOr-00087w-DA for submit@debbugs.gnu.org; Wed, 10 Aug 2022 04:49:13 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLhOo-00087i-Te for 56682@debbugs.gnu.org; Wed, 10 Aug 2022 04:49:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1660121341; bh=qwvX0a3kvIRsiYF7+VUrOmI9Eb270D8f72dyaJ5O36w=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=MVcKpGf60zN/VDMAbWNVi2SfiSeDS1RJw3HF4tqHYBYfGLIuAaWIexFZ1aFhc8LCu IBtLc400WIIqBVew9CCNPvzTblqwFc9rsIbzjSf+0yxWnAazbFFSzqxd9g/tw05rA0 KcYE8YwDwkR2OjdT5W5JdohfRtVNlXVk3QOZUTQw= 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 1Mj8mV-1nj3Fo0LHZ-00f7XS; Wed, 10 Aug 2022 10:49:01 +0200 In-Reply-To: (Gregory Heytings's message of "Wed, 10 Aug 2022 07:47:44 +0000") X-Provags-ID: V03:K1:sjJTLG73djcgRMQ2XQJhQ0GOmaI3tL1LwsEPXPNoXE2JoNC8Y0J DoNQ1YJJvy3wR6ZEfdWVHlyxKkn80AV3zEtz4cx31pI74vaBA5iGs+rxyGw44tmHkzdGcoc SqvuhGP0OfGktRYYUZmOVq7c3CGE8qwRza6eUxgTOs5TEy9e2x+15jMsBrZMOt/h9l6OzPI 1qxSmNEy4FCKBXN+uyzlQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:KQLil8dVkVY=:FSXPEkhO48n2SSiqBfYa5U wumg/wKaFOrMer3F9XuX6fGmmy3d3qZpfMAFyeb32TxZITU3bnsAIhf7DTxfGlkAR0VfEGXC9 AVKzyYgEBJFiSEp+4775aWbKZn20LWH2dgAxAinEdZGhbjM7fs/+3F9LGYx5eITJH8sQ4db/t At8IK069Nnr3SOTYS+lEvRRq7CfhU9f8gFTlFUl/LX2BRnKaow2Abcw1rXJ7ZP7hcWg8/I+MS CuIgbDMcbf1doAbyyi6rvqm8E9Rsle5+dVAOPGDwulfdNuDiBNNUBTrbtgSTFqepj/zjQkZGH iQxU2bDFvDlbTZyc8eZL26VRfWNaBOyiKwTdsu7PHjcxcOSnxob9beMTh0rTppnOLcKa5pwsf TreCgfVY8MHuRpB+Cqvli71XkFfEUK9f1KsF/uCKMythvKnf0yK6egeyjhGAOiBJP4uqsOpcd 9ILaYT3l8riQYEY2jwLjmTPY8/IUQcwibcB3uSYx6bVijRrUlPq6BXqO3KW7KnuERbE4CD8K/ iMzWYsEpeliheviVs7sxF9/DZkZhhtxi2pdhNnx9MML8NyPflcMnQzE7D3IF582QJ9nnM7N2W T87NIgt00S9YRLfWEewEtm8enrN8FPMqOoocZLTyBRemNTzcnPx8hgVG2ZRpgS1hbjxUNP5MD Qtmxn+TR3++ATh1zk3IkKWGTPSxz5M0evOxlyEKJP18b9ZPslY0g4fW6VviYGXw9khXHc25pl trYn2jgrJGeOTKw/GwH3tHAPjhmaLV9sGtOQ1yAoDIUi8X4Nyv3O1wZT4ALy30wvNkGzcbqV 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:239254 Archived-At: On Wed, 10 Aug 2022 07:47:44 +0000 Gregory Heytings wrote: >> >> In any case, when I floor 'C-v' in dictionary.json now, whether narrowing is >> applied in 'handle_fontified_prop' or not, I see the buffer stutter around >> 2%, then go on and freeze around the 9% mark. When I release 'C-v' after >> waiting a while, it ends up at 12% or 14%. >> >> Or if I go to EOB and floor 'M-v', both versions freeze almost right >> away. So it doesn't look like one is an order of a magnitude faster than the >> other, or at least not anymore. >> >> C-n and C-p are also pretty sluggish with both versions. >> > > You must be doing something wrong in your tests. You have a faster computer > than mine, and on my computer, with emacs -Q, neither C-v nor M-v nor C-n nor > C-p are sluggish. When I visit addons.json (from my Firefox directory), which is a single line of (only) 19540 characters, and type `C-n' and hold down both keys, the cursor stops moving almost immediately (on the third visual line) and after letting go of the keys and waiting several seconds, point jumps down the buffer to its actual position; likewise with `C-p'. This is on master with -Q, and is no different from Emacs 28 (the only difference I notice is that in master the buffer is wrongly fontified from position 8235 to the end, while in 28 the entire buffer is correctly fontified). Is this expected? (When I enable so-long-mode in the buffer, holding down `C-n' or `C-p' produces no delay, both in master and 28.) Steve Berman