From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 17:10:39 +0300 Message-ID: <8335dwffds.fsf@gnu.org> References: <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> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26188"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 16:11:18 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 1oNxHp-0006be-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 16:11:17 +0200 Original-Received: from localhost ([::1]:59408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNxHo-0004wB-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 10:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNxHa-0004vb-H3 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNxHa-0002Ew-8Z for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNxHa-0005Bv-49 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 14:11: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.166065905919947 (code B ref 56682); Tue, 16 Aug 2022 14:11:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 14:10:59 +0000 Original-Received: from localhost ([127.0.0.1]:47911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNxHX-0005Be-5c for submit@debbugs.gnu.org; Tue, 16 Aug 2022 10:10:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNxHV-0005BS-Uz for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 10:10:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNxHQ-0002EP-NT; Tue, 16 Aug 2022 10:10:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U0fqmIVyQMbBg+jG6T57Djij+huBfP3VMPNfRJlDpJ0=; b=pJUgWeFyMqSP KlbFxmFJRhjKgA3e9Xdb7zZoTKqMBBiajqELhn3+ECFCAfaVGanb9A/1Dm7GRIy2SgBqfl7EbKkSr fnWWxCIDekAiBXR8/9An9rEa8/Jm/hv9aAqWAGShSqeHPZGSWeGesiDCqtYjHH+uMjJVcnnJ49jb9 4seNylVlqAluTk2mt4l2PPb8mYL06ht2cTzwyaJVVrSZZibMH8qhaM2PLJcdtsDIDKileChl+pWAm Fx/CKxzXVoV1pEkfx7TYjpaPRhQaW8Qwg9NXaU/49/Dcvy1NSupcd0nFn96/MRmZJYsKIXn2jMey8 zQZYpvarA2x4Q8AU10igxw==; Original-Received: from [87.69.77.57] (port=1326 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNxHP-0005y3-3t; Tue, 16 Aug 2022 10:10:52 -0400 In-Reply-To: (message from Dmitry Gutov on Tue, 16 Aug 2022 17:00:18 +0300) 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:239951 Archived-At: > 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.