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 14:19:45 +0300 Message-ID: <8335dwh1v2.fsf@gnu.org> References: <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> <5900f20836753183a6ac@heytings.org> <5c22e38a-5dcd-860e-28a0-b4a5ede6a21b@yandex.ru> <877d3awb92.fsf@localhost> <87pmh2z277.fsf@localhost> <83pmh1iwng.fsf@gnu.org> <87r11gztte.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18592"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 13:21:45 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 1oNudl-0004cj-4q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:21:45 +0200 Original-Received: from localhost ([::1]:35226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNudk-0000Xx-11 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 07:21:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNudN-0000Vv-AJ for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:21:29 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNud4-0000YY-4U for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:21:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNud3-0004GK-Ux for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:21:01 -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 11:21: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.166064881116290 (code B ref 56682); Tue, 16 Aug 2022 11:21:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 11:20:11 +0000 Original-Received: from localhost ([127.0.0.1]:45110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNucF-0004Ef-Ew for submit@debbugs.gnu.org; Tue, 16 Aug 2022 07:20:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNucB-0004E8-3U for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 07:20:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuc3-0008UF-TB; Tue, 16 Aug 2022 07:19:59 -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=R5plv/raFGNWbfaBEFQbHeqXgX7beoV7yjozpeYFuTg=; b=TOS1PMs27IBk 2jTw2nDzFOxvfwXzmvjUbPux992nfuDqq4q2A+expikdxp9CuJoqGcFELBifPbbblqv9jjbfhY9D2 qqXdL6gpq/V07smcnwiN4ybtJBOKKi1FdLwoaDCdhXyMlNaeoc8S+q1h9V0Q+FGQnIaEoa/xeFPKZ P9k0VvmbbqjsUaGZCw4M9X6Ja/r2gL0EL/iWF64TkeaK5RwGtZ/TU/clJpIhZJb9aswrbGz20Yxl5 T69gjDwgWRP4cuJunqe3/gDDwIme1/7bCuIahvyI2Bqkq7/eJFCgqUpgFEjP0lvAY6p8iuKmvSCs3 ShkV0QiGHaYxQwcN4zpiKw==; Original-Received: from [87.69.77.57] (port=2660 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 1oNuc1-00068j-RO; Tue, 16 Aug 2022 07:19:59 -0400 In-Reply-To: <87r11gztte.fsf@localhost> (message from Ihor Radchenko on Tue, 16 Aug 2022 12:38:37 +0800) 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:239898 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, dgutov@yandex.ru, gregory@heytings.org, > 56682@debbugs.gnu.org > Date: Tue, 16 Aug 2022 12:38:37 +0800 > > Eli Zaretskii writes: > > >> I have seen very long lines in Org. Specifically, in source block > >> output. (http query) > > > > How long is "very long" in those cases? > > AFAIR, over a screen full of text when truncate-lines is set to nil. > It should be over 5k symbols in my screen. > > I remember this because it triggered a significant fontification > slowdown caused by some (now fixed) Org regexp hitting too many matches > on that line. > > Also, I just checked some of my org files and found a >15k chars long line. 5k shouldn't present a problem, especially when some/most of it is invisible (as frequently is the case in Org). 15k might be a problem, indeed, depending on what's there. However, since you never complained about long lines until this day, I guess it isn't such a big problem.