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: Thu, 04 Aug 2022 12:57:48 +0300 Message-ID: <83wnbo2uw3.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> <83wnc3hkdg.fsf@gnu.org> <49df74e5-e16a-a532-98d1-66c6ff1eb6c6@yandex.ru> <83pmhuft5a.fsf@gnu.org> <05388e8d8836c2e7ef3e@heytings.org> <136c4fe0fcb9ce5181cb@heytings.org> <3d639ea12689d767ba2a@heytings.org> <838ro44fc8.fsf@gnu.org> <3d639ea126d759bddfea@heytings.org> <83y1w42vp4.fsf@gnu.org> <3d639ea12618e6a503af@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27312"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 04 11:59:11 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 1oJXdG-0006vX-O9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 11:59:10 +0200 Original-Received: from localhost ([::1]:57878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJXdF-0006Zd-Pa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 05:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJXd8-0006ZV-37 for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJXd7-0001rY-Pn for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJXd7-00084l-MJ for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:59: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: Thu, 04 Aug 2022 09:59: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.165960708230949 (code B ref 56682); Thu, 04 Aug 2022 09:59:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 4 Aug 2022 09:58:02 +0000 Original-Received: from localhost ([127.0.0.1]:51325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJXc9-00082r-OX for submit@debbugs.gnu.org; Thu, 04 Aug 2022 05:58:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJXc7-00082X-VF for 56682@debbugs.gnu.org; Thu, 04 Aug 2022 05:58:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJXc1-0001iT-Ph; Thu, 04 Aug 2022 05:57:53 -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=g2NoaXQ4sMYjgRGMn/1ZwFsv06GHZ5E0BZ690ZDhSfA=; b=qlEMeLisNAvW BzmOMl6GWwDMIpxAMEa6G/v3sTDymBEOdduIHD5B9gW5sjYlGl5G9cMGs+D+EUXJsEsaMz9O+sXNU eyocjTF74jat15DFlRhMkgf5SczL62ZE7rfYUYOCgwNS2FyPCLAnzGw9F9TDOeabZF02K51EQLbXW MM57aM8cGNf/B+Cl29eIfpr6YGf/8BEAX600oDPjgQm7KCfMDH0zTj3wL8doZmvqJrAjIYJwTDTdT JiIQSfe/2PbGEInoM5v/DHxq0h3qPu/CR2xJBO2rp5L03J43GpEYhGzmLpNUevLWjCIw/OVUQm2Fe cGAkHx+G+poXmNZ15spfAg==; Original-Received: from [87.69.77.57] (port=1255 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 1oJXc1-0003Kl-8R; Thu, 04 Aug 2022 05:57:53 -0400 In-Reply-To: <3d639ea12618e6a503af@heytings.org> (message from Gregory Heytings on Thu, 04 Aug 2022 09:46:17 +0000) 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:238719 Archived-At: > Date: Thu, 04 Aug 2022 09:46:17 +0000 > From: Gregory Heytings > cc: dgutov@yandex.ru, gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, > monnier@iro.umontreal.ca > > > >> I just pushed an improvement for Bidi. I did not do so earlier because > >> I was trying to improve it further, but somehow I'm hitting a brick > >> wall here. Could you please check, and tell me if what I already did > >> is okay? > > > > Hmm... which part(s) of the recent commit(s) on the branch are related > > to bidi? I only see changes related to composed characters. What did I > > miss? > > > > 82b602dc2f improves bidi in long lines, without indeed touching bidi.c. The changes are related to compositions, not to bidi. Displaying Arabic (and maybe also other characters in that file) requires character composition, but it has nothing in particular to do with bidi per se. Are you saying that if you replace the Arabic text there with some other script that also requires composition processing (like one of the Indic scripts, see lisp/language/indian.el), editing this file is significantly faster? Btw, I'm unable to edit that file on the branch, because show-paren--default causes an assertion violation. I'm pretty sure that's due to the issues in narrow-to-region that were already fixed on master.