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: Tue, 16 Aug 2022 13:57:18 +0300 Message-ID: <958def4a-9ac5-1b5d-f351-c0dfe0a99e06@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> <83k079gy4h.fsf@gnu.org> <03742b06-6053-fb75-8873-8d355fd1f71b@yandex.ru> <837d38hpoh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7296"; 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, gregory@heytings.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 12:58:10 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 1oNuGw-0001mB-4J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 12:58:10 +0200 Original-Received: from localhost ([::1]:39390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNuGv-0005pH-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 06:58:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuGp-0005p6-1H for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNuGo-0004Q0-MU for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNuGo-0003dI-Ic for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 10:58: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.166064745013923 (code B ref 56682); Tue, 16 Aug 2022 10:58:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 10:57:30 +0000 Original-Received: from localhost ([127.0.0.1]:45072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNuGI-0003cV-0j for submit@debbugs.gnu.org; Tue, 16 Aug 2022 06:57:30 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:33421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNuGG-0003cJ-0n for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 06:57:28 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id v3so12200403wrp.0 for <56682@debbugs.gnu.org>; Tue, 16 Aug 2022 03:57:27 -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=Ue5XF+f2yIdqv/YjZ6nBFEf1oSQN0WpDGy+Ty64xZT8=; b=YW8PFBdnD6L3JBxFd8s13AZ9MYZadoxRjlm80EGmnip4EaSpRMRbyBhtLlPli0nVep ZPK01aP8RxzLt8psIiEXr3Lo1+Lvuklkh6vHgpE16cLdFUVuTaGEgwiSrTob28BrE5qP yagMOsJbKISeAHcgGESe3iaNSsDZaUY9i9wRd4Hk3B35hEeThaoaJdFNqXlhxQtpcPuo Iw2M/WqPMwDq6zeRck9wsz1Ao1B+3IwjWVr4qdD7tnxMKYHiajsYXGLpk4M6yfiGAKVC fyFhxMbNesb2PVV9B9XBAIpFuIOFY5a08r0veQftANVJLwoiVeNJ8EqlbS6WVkJ0i4i4 pezw== 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=Ue5XF+f2yIdqv/YjZ6nBFEf1oSQN0WpDGy+Ty64xZT8=; b=Z/TZ17UkoJVe+/Hat+1tU/hVVGPbic+NTGugQAXrSz2718fk2T8Z4/vpv/PKxQL0oz tdFq/SOW+cyOGIdp5btXdjQVxOFlS1rOV/xgNOI8RDk5wf5Zo66n7jfWcTHnoA5vL2lS EWSLxWgbQzNr7Q7YAvZPj9M7QkbcoRBXj7UXgmeNLJP7yoGHLwXam9ArjzrBwZA8y10s PYjLm3ZdWhUo/MjZI4hFp9H29jd9RsxNOaSS6NL4MTIXJq3incINKI61Y0GVqafCkZIi yDf2912YSKHxWsV1eH3FKIVZssqZ+h4lyomX6kYuU8himz3sSyfz0ZL5v8XEFI81jSbk ShDw== X-Gm-Message-State: ACgBeo3s1WEjqGGNQXEknn4qvhd8WWVC2Etkcj1cIKj5Hu725HCa0z0c d6PljW8rd87zWxMY+w2eCoI= X-Google-Smtp-Source: AA6agR7Zeo/qP2ozkN0Jbm+0NDwGnpdn3JndkM4TBU5+kEjWDnhQw+POSu9se8LvigtGmPJ2/Lz/mw== X-Received: by 2002:a5d:6488:0:b0:225:f99:338b with SMTP id o8-20020a5d6488000000b002250f99338bmr3481554wri.638.1660647442080; Tue, 16 Aug 2022 03:57:22 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c6-20020a05600c0a4600b003a31fd05e0fsm3756533wmq.2.2022.08.16.03.57.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 03:57:21 -0700 (PDT) Content-Language: en-US In-Reply-To: <837d38hpoh.fsf@gnu.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:239894 Archived-At: On 16.08.2022 05:45, Eli Zaretskii wrote: >> If we apply narrowing in handle_fontified_prop (or like in the >> attachment), and also in font-lock-fontify-region, it seems like every >> significant (*) execution path will go through two repetitions of the >> same logic. >> >> That's not ideal. > But not a catastrophe, either. I suppose not.