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#69385: 30.0.50; Long lines with bidi text slow down Emacs Date: Mon, 26 Feb 2024 16:19:15 +0200 Message-ID: <86v86bux3w.fsf@gnu.org> References: <878r381pjk.fsf@gmx.net> <86msrowk0g.fsf@gnu.org> <87zfvozaj7.fsf@gmx.net> <86edd0wdbs.fsf@gnu.org> <87r0h0z3fl.fsf@gmx.net> <868r37wgkx.fsf@gnu.org> <87zfvnfh4d.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36138"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69385@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 26 15:21:05 2024 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 1rebqr-0009CJ-4Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Feb 2024 15:21:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rebqZ-0003aY-Ut; Mon, 26 Feb 2024 09:20:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rebqP-0003XG-1K for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 09:20:38 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rebqO-00044X-PR for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 09:20:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rebqn-0007O4-PF for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 09:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Feb 2024 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69385 X-GNU-PR-Package: emacs Original-Received: via spool by 69385-submit@debbugs.gnu.org id=B69385.170895720628227 (code B ref 69385); Mon, 26 Feb 2024 14:21:01 +0000 Original-Received: (at 69385) by debbugs.gnu.org; 26 Feb 2024 14:20:06 +0000 Original-Received: from localhost ([127.0.0.1]:38960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rebpt-0007L8-29 for submit@debbugs.gnu.org; Mon, 26 Feb 2024 09:20:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rebpq-0007KN-RY for 69385@debbugs.gnu.org; Mon, 26 Feb 2024 09:20:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rebpM-0003WT-6B; Mon, 26 Feb 2024 09:19:32 -0500 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=cZqOxbAeUiIIsOjO4Q2QcOFET2XgujDTHdxpkKouTek=; b=kImkEmD0rWSy STZp97kRqBB6T7BC2T9RnvZCEZYT+ohH7Ky+025OBVqv5Tqdm+hx97Ska9zBDMadOriGuzJ28qxmU +QD8+TT5hddFLx54fTP5JWA+diu8oL/hSMstX91zX7YI7fNiPyHEcuBL0W1uwyCz3fr+1d+YFK/RQ 4c7qI5YqFOK6LMb9CcoDa8B1yEyIik3HOQ2Kmv3C3yur9qMlqtMCs7jdHwL0QHwCYZeKUtjE7+nkp DxK6ete5ARv1Aj8HbVqTtp82VDytJIS+y92zBhpzfpLWZ5n2BRsBC0ZGGZzNIbq1mJPM0/cxNLhHY VmTj2sP0QPxAMbo0w9UEww==; In-Reply-To: <87zfvnfh4d.fsf@gmx.net> (message from Stephen Berman on Mon, 26 Feb 2024 15:13:38 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280664 Archived-At: > From: Stephen Berman > Cc: 69385@debbugs.gnu.org > Date: Mon, 26 Feb 2024 15:13:38 +0100 > > On Mon, 26 Feb 2024 14:33:18 +0200 Eli Zaretskii wrote: > > > The CPU is fast. My HarfBuzz version is much older, but I doubt that > > HarfBuzz became so much slower for Arabic. So it's very strange. But > > maybe it's worth to try downgrading to an earlier version, just to be > > sure this is not the culprit? > > That's not so straightforward on this system, where I build system > packages from source, so downgrading HarfBuzz may require also > rebuilding packages that depend on it. I have a somewhat older system > on this machine with HarfBuzz 7.1.0, so I can easily try that. What > version of HarfBuzz are you using? I have 2.4.0 here. > > If, after starting Emacs, you set all the entries of Arabic characters > > in composition-function-table to nil (e.g., using > > set-char-table-range), do you see significant speedup? > > Yes, there is a noticeable speedup when M-> and C-v, M-v, and even > holding down C-n and C-p is faster, though they still freeze after a few > seconds, but the freeze doesn't last as long as when it happens with the > shaped Arabic script. Also, probably unsurprisingly, the speed after > disabling shaping is still much slower than keeping shaping enabled but > setting bidi-display-reordering to nil. Is this with text from HELLO, or with some other Arabic text? The prominent effect of bidi-display-reordering is actually surprising, and not what I see here, with or without shaping. Very strange.