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 17:39:15 +0300 Message-ID: <6e7e633d-cfd3-2c01-8fc6-fdeef29939fc@yandex.ru> References: <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> <83v8qvj79c.fsf@gnu.org> <838rnqk8op.fsf@gnu.org> <83v8qtha89.fsf@gnu.org> <859945d6-87a6-d0d2-e693-8ebe21c328fd@yandex.ru> <83sflxh5c1.fsf@gnu.org> <6a72b305-ec92-8449-7a11-b006caadb707@yandex.ru> <83o7wlh2as.fsf@gnu.org> <52e0d4d6-f022-ffdf-8325-c4d1762b47a2@yandex.ru> <83a684hq8f.fsf@gnu.org> <8335dwffds.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="25778"; 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 16:41:00 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 1oNxkZ-0006VD-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 16:40:59 +0200 Original-Received: from localhost ([::1]:35670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNxkX-00054P-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 10:40:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNxjg-00052Z-Hy for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:40:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNxjf-0007Ox-4z for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNxje-0005we-C4 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:40: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 14:40: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.166066076622805 (code B ref 56682); Tue, 16 Aug 2022 14:40:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 14:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:47984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNxj3-0005vl-UD for submit@debbugs.gnu.org; Tue, 16 Aug 2022 10:39:26 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:45773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNxj2-0005vY-8t for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 10:39:24 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id z16so12849075wrh.12 for <56682@debbugs.gnu.org>; Tue, 16 Aug 2022 07:39:24 -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=HAJvz2cWO6R1YbVkHBAg5XJvwsAh6sLVdLXiObfBW3E=; b=BISmSZQgFeUzb5mVl6K8NBfoarG7snVNBJfdwQI6UUAO+Mvya3AGPt1zULlgHgLaB2 K/FpNe7DT3xFnOB0Ho5Z69I2FBqJO9cRCkD7US7yRksKEk/D4AppVyqprh8DOCqwt8t+ UhFb5sncYVVUxlnyuqybuw/i8FSHwyMa/OukZnGEC7iQvRgfVIKqj3fTTXJGO4VB+mIE MZ5ZINvQ+vMhg0CFFxPvlKAd02txJr8ftNNH0S6VgvAr6toaB7Lj5FiS26bpQESx0I+q EgCoiHwkgho+DSisgt6d2GJOpD75s9y0kynVEDMFZZoaH2HOy2eRY4/F7md62qozYUGa 3i4Q== 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=HAJvz2cWO6R1YbVkHBAg5XJvwsAh6sLVdLXiObfBW3E=; b=icHjK6K/BQRgOYsQzJ0nT2+E5PnEAtuzOExhTltWzNU/OMecfkzblWOrZFl1l7XW9t fGh/X2puGRN+fnAgNI7rqw2Iz8/ifBFetyIj6z+7qSw+LUQSU+cNa8eTOoyQJMpVurSu sA32Wpvnd0hcEuIuto4FjP83VM5OWewOvyW6z3hnLv2clA6Ft81vxFh00GwCCWkfz2dA gaScWBi52cNE+GtcpT8N3ZkldbYQRqWZjbIlhWcTRkRv8H4BOEpIe1Edu1HwdKCWSyru 4CVrdF+84XbV3um4m7xdYNuE/llHv+0CaCwEmzhfBBs3bop/1FcKbN8dbZSnxFokpzNO kXLw== X-Gm-Message-State: ACgBeo0LdXDcYjLm23VF2viMGs33+5t6SdXFEXS9Yi18BX9qjkud3M+6 ceml1wUBGprO4Gsfyh8bZxM= X-Google-Smtp-Source: AA6agR6GXEM7qEX8aI238ivsEJCyvZ0gVP6PLSaflN/6U390bqtIvKiID1Z8hK3u9LNG7F+3i6KHqg== X-Received: by 2002:a5d:440b:0:b0:225:2106:2f30 with SMTP id z11-20020a5d440b000000b0022521062f30mr158868wrq.533.1660660758399; Tue, 16 Aug 2022 07:39:18 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id a3-20020a05600c224300b003a54109a6a0sm12855625wmm.3.2022.08.16.07.39.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 07:39:18 -0700 (PDT) Content-Language: en-US In-Reply-To: <8335dwffds.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:239963 Archived-At: On 16.08.2022 17:10, Eli Zaretskii wrote: >> Date: Tue, 16 Aug 2022 17:00:18 +0300 >> Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca >> From: Dmitry Gutov >> >>>> It's a buffer without long lines. Simply a large file. >>> >>> ??? Are we talking about long-line.xml, or are we talking about >>> some other file? We did nothing to change the behavior in large files >>> without long lines. >> >> I'm talking about a 20 MB file I created manually with some simple >> contents. Just no long lines. > > That's a different problem, one we didn't try to fix yet. > >>> If you are saying that 'recenter' takes too long in some file, and >>> therefore delays M-> for too long, it is probably a separate issue, so >>> please report that as a separate bug, preferably with the file that >>> causes it. >> >> It seems pertinent to me since ultimately the decision to narrow in >> handle_fontified_prop is driven by the idea that font-lock in large >> files ends up being a problem anyway. And here we have a large file >> where this doesn't help. > > Because it's a different problem, with likely a different solution. > >> But I can file it separately, of course. > > Yes, please. Bug#57245. Thanks.