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 15:46:08 +0300 Message-ID: <83mtc4fjan.fsf@gnu.org> References: <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> <8335dwh1v2.fsf@gnu.org> <875yis2zp8.fsf@localhost> <83v8qsfky8.fsf@gnu.org> <87tu6c1iju.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3276"; 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 14:54:47 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 1oNw5k-0000QM-0c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 14:54:44 +0200 Original-Received: from localhost ([::1]:51744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNw01-0007kt-SD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 08:48:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNvyI-0007RB-GI for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNvyI-0004rg-78 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNvyH-0000AA-Uq for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:47: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 12:47: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.1660653987582 (code B ref 56682); Tue, 16 Aug 2022 12:47:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 12:46:27 +0000 Original-Received: from localhost ([127.0.0.1]:45232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNvxj-00009K-3k for submit@debbugs.gnu.org; Tue, 16 Aug 2022 08:46:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNvxh-000098-Iq for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 08:46:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNvxb-0004lF-It; Tue, 16 Aug 2022 08:46:19 -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=4ieSN5qI5/JDfVvpzK684UW4Y7mlGyaJ082u+BZwyhw=; b=hmxtWTXVSEaR FkqDwfH1eiceQE8JMqFTJIpMAGPIyVXGVKpVR7/QVhz/ERPTZZLcwmPHNrByz2LD7fNRbCEtAm5Um PN4wqC0dPav9U8X6t51YEMHBIulhVnEy7QSI3mvjqWCi6+lparzaeCb4jql04BOJCLtDFXI88Hed1 rYyu5lM4I/RKy07RvC4NlW5McY78EAieopFm0sVfoV19Q+paXtaJcmlEmoQgOAnsH/gY7EFVNv7lG ZZTauw4QMSVjvAQGPO8nJ4qZOFGNwmheohxZH+Iv+Qhr8PU6FkGEUNm2y33KzKuOSdpiVOEAoOTfl 46LM3912VQaN2KwhpSiGfg==; Original-Received: from [87.69.77.57] (port=4034 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 1oNvxb-0005yc-37; Tue, 16 Aug 2022 08:46:19 -0400 In-Reply-To: <87tu6c1iju.fsf@localhost> (message from Ihor Radchenko on Tue, 16 Aug 2022 20:25:57 +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:239915 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 20:25:57 +0800 > > > More importantly, when I wrote the above, I wasn't thinking about > > fontifications, I was thinking about the rest of the display code, > > which always skips invisible characters, and skips them using > > relatively fast search for text properties, not the much slower > > iteration through the text one character at a time. > > Just in case, please note that Org does not touch 'invisible text > property to hide text. Instead, we set char-property-alias-alist > remapping several other text properties with different non-nil values > into 'invisible. This also means that functions like > `next-single-property-change' may not skip the whole invisible chunk in > one go. Not sure if it is important. I don't think I understand what you are saying, but as long as whatever you do causes the relevant text not to be displayed, it means the display engine did understand the text is invisible and refrained from displaying it. Which means it skipped it, as it does with any invisible text.