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: Sun, 14 Aug 2022 16:16:42 +0000 Message-ID: <5900f20836753183a6ac@heytings.org> References: <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> <83wnbckp0q.fsf@gnu.org> <8e884ebe-2d2e-d599-15c3-a5cfe5e6b295@yandex.ru> <83o7wnl7ok.fsf@gnu.org> <036414cc-c711-efaf-ed5b-f8ccfaca0604@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29790"; 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 Sun Aug 14 18:17:15 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 1oNGIc-0007YZ-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 18:17:14 +0200 Original-Received: from localhost ([::1]:56496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNGIb-0003ox-D9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 12:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNGIQ-0003oU-Hg for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 12:17:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNGIQ-0001hA-7C for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNGIQ-00038A-2d for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2022 16:17: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.166049380512008 (code B ref 56682); Sun, 14 Aug 2022 16:17:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 14 Aug 2022 16:16:45 +0000 Original-Received: from localhost ([127.0.0.1]:39604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNGI9-00037c-3t for submit@debbugs.gnu.org; Sun, 14 Aug 2022 12:16:45 -0400 Original-Received: from heytings.org ([95.142.160.155]:52824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNGI7-00037U-O9 for 56682@debbugs.gnu.org; Sun, 14 Aug 2022 12:16:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1660493802; bh=TOVha7y9rh1/chfRnqd8A3oh2T+1aXrkn9f9hiQV4+s=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=6J5RPyekR9lpIBD+9l92t/d1Y0w7/NdJbPBzJ+JGx5A+qTOQImFBiNNJxhohWE1XQ TqLhnSlMFNSdvAZhunJVvtcuJIKQQVDsVCs6gWTHd2e83FDVcCmLbv5eLhrDNK2gLw HQz5a3sy6sZSRo6XTeeV4axP9H0xjztWAoWRvEDYNuiu+jO65GuOWlQ9kXEsacxheU 1W98Rmh9WoCzB28Vb8iDYp4/sCQPfhEiMW7zW52NG6Vpt4TKShv04OgyFj0LvBfhMq 6yMdXZG+aMWglXAtgiLvTZ/H8MnmJTHTwF8GS6KM2Ucize4w8qhIXkW7Edpc2h9EnG jjH3rqi8DkVIA== In-Reply-To: <036414cc-c711-efaf-ed5b-f8ccfaca0604@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:239660 Archived-At: > > The alternative, of course, is to pay the price of syntax-ppss on larger > spans and wait the corresponding amount of time the first time the user > scrolls to EOB. > Or to speed up syntax-ppss in a way or another. > > But as Gregory shows, when you get to _really_ large files (like 1 GB > JSON file in his example), pressing M-> will still make you wait (I have > to wait around 20 seconds). > Or when you have a slower CPU, with moderately large files. > > But being able to choose this approach (in the absence of better > upcoming alternatives) is a good thing. > The problem is (again) that what you would like does not provide any protection against modes which use widen inside their fontification routines.