From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Mon, 15 Aug 2022 23:44:36 +0300 Message-ID: <881ac6c7-116c-49d0-8f19-4a3778260914@yandex.ru> 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> <83wnb9hadb.fsf@gnu.org> <395454dd-7238-c5d0-e924-2f65a186baa7@yandex.ru> <83r11hh4pm.fsf@gnu.org> <3a1232a17b09ce88af40@heytings.org> <4ebdfdc3-4aeb-7ebb-b5ba-43b5c9b0aaa1@yandex.ru> <3a1232a17b80387503f4@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 22:45: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 1oNgxV-0003jS-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 22:45:13 +0200 Original-Received: from localhost ([::1]:36196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNgxT-0006bM-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 16:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNgxK-0006av-1g for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 16:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNgxJ-0004s3-OC for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 16:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNgxJ-0006iG-Ju for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 16:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 20:45: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.166059628625765 (code B ref 56682); Mon, 15 Aug 2022 20:45:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 15 Aug 2022 20:44:46 +0000 Original-Received: from localhost ([127.0.0.1]:44189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNgx3-0006hU-JI for submit@debbugs.gnu.org; Mon, 15 Aug 2022 16:44:45 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:45729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNgx2-0006hI-5I for 56682@debbugs.gnu.org; Mon, 15 Aug 2022 16:44:44 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id z16so10312883wrh.12 for <56682@debbugs.gnu.org>; Mon, 15 Aug 2022 13:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=VyDoClNPcM8N0B7RfKDbgYgDrIkcWqztrmKzcwUl/u0=; b=BzifBMsCopUGSDtGZFhVZNSlDiVIyGWyPcl2U1ALVPfeG5nbb/+Rr7E1ytPsq7QaYv vj0TM7V6b5ZX4txOmE2fbBTs4BPNCdfTGTunSFpIMUKdWV15rO/e5nZevH2Yw0lrcz3L 9UH9sQY7UBp9cB8dgmH5QIyok1n5thZRgwmOIi/tV+U+qk1hoW+o4/w/9ZkrQgFkgnlB bloPfnOjJahyBXiD4U9INWx/uwinMFrs29KX3qptwzk2D0jCPcedPgAtGbzNvA7jwHXh 8LkzFJXQS7xQvOm/feoTpDU7iYzDLvaNlBboUNc1i2xuvZ6rV+6od6kySn5Pu3RooJft iB5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=VyDoClNPcM8N0B7RfKDbgYgDrIkcWqztrmKzcwUl/u0=; b=OqY6RM/khu7Ep5dDDAJVJEHAzrQn5kVbY8tkg7jTGGOG7o2mohRqMq1ZWzqrR1FruW 5LCeayt97usbwOIYgai4R2OAebn2A/AASZxLqS1JZJV/cXT3JYTUbF2o/nKCWdi0B3UN HKO2m+pw7OSCnd47UiYrCm6snLnZ9QqktHq6Pi8xft2/s2imPyJ9cuwNwbTamgjmOj0D EGDkzQtPoPMY/SdzXMXphAMgUuy4LkjNN6apNXCkLlGJ0vXwiqlBWQIkJqJBbR5iVPJj KNUhl0PR64nRwvrpx7K1CO5FMNok48OzaQCRM9SFEknoJf0xWd0T3c5FZ74TX1VZ6udS QbzQ== X-Gm-Message-State: ACgBeo0adqDDl+CT9SRtDPgsGivKLiPIDjL7zPESKpe9BvU+3cSPsRrb Manoyh5PJu5RYhh2/W6Ad0k= X-Google-Smtp-Source: AA6agR4ArdpjjJ7n3rEu0G+WzmfCA2ymSVq+31FQ1vdcSOFTG4kO19IRwZsCQZA4BRlb0lHtugSqgA== X-Received: by 2002:a5d:64ed:0:b0:225:11d4:76d1 with SMTP id g13-20020a5d64ed000000b0022511d476d1mr891085wri.579.1660596278411; Mon, 15 Aug 2022 13:44:38 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id a9-20020adfed09000000b00222d4dfcdffsm8239067wro.87.2022.08.15.13.44.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Aug 2022 13:44:38 -0700 (PDT) Content-Language: en-US In-Reply-To: <3a1232a17b80387503f4@heytings.org> 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:239839 Archived-At: On 15.08.2022 23:29, Gregory Heytings wrote: >> If you wanted the development to take this route, it would have really >> made more sense to hold off on applying the narrowing to >> fontification-functions, keeping font-lock slow-ish in large files. >> That would have encouraged direct work on speeding it up. >> > > That's your opinion.  What I think would have most likely happened is > what you yourself said: these are large files, it's unavoidable that > font locking takes somes time (these are not your exact words, I hope > they express what you said faithfully). I said those words just as I was working on improving font-lock's performance in JSON files. An effort which doesn't make sense if you narrow around font-lock anyway. Also note that until now it has been impossible to improve redisplay of big files by working on font-lock (other bottlenecks were much more significant). >> But anyway. Suppose we have some more success with syntax-ppss. Two >> options: >> > > There are many other options besides the two options you listed. Perhaps. I don't think anybody's mentioned them here, though.