From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Wed, 03 Aug 2022 08:11:08 +0000 Message-ID: <5f6988c78183f8c74ff2@heytings.org> References: <8a3eaeef01be5bfaa5ef@heytings.org> <05388e8d8812bfa3695d@heytings.org> <83v8rf5894.fsf@gnu.org> <65cb7c73fd4a999cca00@heytings.org> <8c7321f2f3400a5db9be@heytings.org> <8c7321f2f388e5343475@heytings.org> <8c7321f2f36494299e61@heytings.org> <8c7321f2f336523624e3@heytings.org> <83r1202meh.fsf@gnu.org> <6020ffaf-9069-0070-76cf-a13379ef01b5@yandex.ru> <83les71ilg.fsf@gnu.org> <06c5560d-3009-e5a5-3d33-fe5d2ec32d6b@yandex.ru> <74ddc877f17a06d8f120@heytings.org> <83wnbq62sz.fsf@gnu.org> <74ddc877f1b7de1eaf91@heytings.org> <9a8f98b5-3943-be38-908a-3aad3f282ccb@yandex.ru> <68722578-414c-a0d9-57f2-21a0e6d74c0f@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="v6PK6PKaxJ" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 03 10:12:35 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 1oJ9UY-0000Nm-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Aug 2022 10:12:34 +0200 Original-Received: from localhost ([::1]:51350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJ9UX-0003DA-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Aug 2022 04:12:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJ9U2-0003By-1w for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 04:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJ9U1-00014n-Ov for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 04:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJ9U1-0006tt-KK for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 04:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2022 08:12: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.165951427426467 (code B ref 56682); Wed, 03 Aug 2022 08:12:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 3 Aug 2022 08:11:14 +0000 Original-Received: from localhost ([127.0.0.1]:46017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJ9TF-0006so-UO for submit@debbugs.gnu.org; Wed, 03 Aug 2022 04:11:14 -0400 Original-Received: from heytings.org ([95.142.160.155]:36678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJ9TC-0006se-2i for 56682@debbugs.gnu.org; Wed, 03 Aug 2022 04:11:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1659514268; bh=NSE+b9Bu7TotTTCKtFDzvohv+FfwQ/gtz0QaO1znKyY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=tkHZlXt+4T9U8cVaLHd8oQon9jiz1AtMEDx7aP6adxTh6aZq6ZWuaI1nbGVzEubT0 lh1pkqkZ01p1Fp1Nfr2/fSHQVGtQnIYfqLfS4cKaENcji/re/lk7eKeLZEOaHlVWBd quLHK+CFZe/WsGbfty79sTY/XrU2M3uO/DxNgbPRxpHTj4fFRLOl6LntnJ+TibqbBX +QvyNR9rFBFa43PDOpMiv7GbnjKRtyGMwD/Sp1JKhiuH7WEfqRI6efjsqM+MWhLtvE eQglzDuxBzH97QJpngv3ZMey/MECAmmArI6J5W9DmD5PeJAuVSVgOwY35fL6F7w8ag 0cjuBYbP2UC/g== In-Reply-To: <68722578-414c-a0d9-57f2-21a0e6d74c0f@yandex.ru> 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:238618 Archived-At: --v6PK6PKaxJ Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >>>>> Try to open the dictionary.json with Emacs on master a month ago. >>>>=20 >>>> I believe it can also be done with the current master, just after=20 >>>> setting long-line-threshold to the nil value.=C2=A0 Right? >>>=20 >>> Indeed.=C2=A0 With master from one month ago it's even more crystal-cle= ar=20 >>> that you see the statu quo ante. >>=20 >> If I set long-line-threshold to nil, does that also disable the=20 >> redisplay optimizations related to long lines? >>=20 >> Ones that caused scrolling delays even after the buffer has been fully= =20 >> fontified. > > I mean those that *fixed* the said scrolling delays, of course. > To clarify, you need to (setq long-line-threshold nil syntax-wholeline-max= =20 most-positive-fixnum) to "recover" (more or less) how master was behaving= =20 a month ago. Otherwise you'll see the effect of syntax-wholeline-max,=20 which can be either positive or negative. Three recipes (with today's master): emacs -Q M-: (setq long-line-threshold nil syntax-wholeline-max most-positive-fixnum= ) RET C-x C-f dictionary.json RET y ;; takes 160 seconds C-e ;; takes 200 seconds emacs -Q M-: (setq long-line-threshold nil) RET C-x C-f dictionary.json RET y ;; immediate C-e ;; not finished after 1200 seconds (20 minutes), I killed Emacs emacs -Q C-x C-f dictionary.json RET y ;; immediate C-e ;; immediate --v6PK6PKaxJ--