From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#3219: bug#15555: 24.3; Bidirectional display very slow with long lines Date: Tue, 26 Jan 2016 00:13:01 -0500 Message-ID: References: <83wqlo461e.fsf@gnu.org> <8338obskk4.fsf@gnu.org> <83iox6qt1t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453785261 22072 80.91.229.3 (26 Jan 2016 05:14:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 05:14:21 +0000 (UTC) Cc: 3219@debbugs.gnu.org, 15555@debbugs.gnu.org, Stefan Monnier To: Jerome L Quinn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 26 06:14:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNvxC-0003pA-6W for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jan 2016 06:14:10 +0100 Original-Received: from localhost ([::1]:41951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvxB-0007hj-18 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jan 2016 00:14:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvx7-0007hZ-E1 for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 00:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNvx4-0005i0-E8 for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 00:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvx4-0005hw-Ar for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 00:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aNvx4-0001cf-7e for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 00:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jan 2016 05:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3219-submit@debbugs.gnu.org id=B3219.14537851916163 (code B ref 3219); Tue, 26 Jan 2016 05:14:02 +0000 Original-Received: (at 3219) by debbugs.gnu.org; 26 Jan 2016 05:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:36525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNvwF-0001bG-8Y for submit@debbugs.gnu.org; Tue, 26 Jan 2016 00:13:11 -0500 Original-Received: from mail-qg0-f46.google.com ([209.85.192.46]:35514) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNvwD-0001ay-Dw; Tue, 26 Jan 2016 00:13:09 -0500 Original-Received: by mail-qg0-f46.google.com with SMTP id o11so127228351qge.2; Mon, 25 Jan 2016 21:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=+Kbp4D7VE6ZBdexfiVOBTNwi2sWi6i7dCgZNwp1MIWc=; b=u8PknroAF8cIR1/+MUP1XwCVDuLTLUTM6gVDntq3+YJ6WtkdaT5bxQHZSx17JyxOx6 hBCN1KMGP6weKQzzTiSpqZHfP2h0EoZS7VPd2a2D0w3gCnmxqtzXY3cvM/8Trk40D85W SZ1CDGdsNvB9YZ6Kee1JdvTra2ElPtJ4aKWTOwcsM03niQVAcJSJU8t5AUA7/WwUC4uj jFSmvaPMn0tRFBdBwebVCOkGquWU2rvaH0oOkJRvtp9Z1f9pEroESICSTVoHoct7PhyD GvI/GBkcGZxn7YWOORMqb1kaFstCNlxWnZ4nL0yge2Kjhow2OHcoTbhFIHAT6Su0+vvd 4sBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=+Kbp4D7VE6ZBdexfiVOBTNwi2sWi6i7dCgZNwp1MIWc=; b=kmxScOrxR+MTGo2FW5ihArbe7WlmcpkA0Z8wtUhmQ0l4VI6jvYS+n1XQ88LsI131vq CywDEwq9cEUxXZw5J9k7LXy8tdwYtNPp2ZKD6sWTBjXo0fGMpK4StLydxPqufUEeAGAw IO/Q3a+PNmQP78sOpUtsT8ceCtmZFWNR1Vn8n2cs2/OGi2opILsMeMwLqPGzUycqJjD4 m3XG9erKY/DcYbcdT9iZv5eAPgwTBVEIrM4YtImGhZeaJaOCPj4dYByzHkTEe1MdE6oY hRd8IAFm7/7Cgfebg5j4AtdLpdG95GpxjT/gIVxeozqKejUuoBjHw/TR3Ssylw2W/eGa /JOQ== X-Gm-Message-State: AG10YORE6Wtwe8aozytMmj/Wl91Zp98I+sOCVfUFe+hJM+VLg1inhB+9WJi5INMWle84HQ== X-Received: by 10.55.80.131 with SMTP id e125mr25892105qkb.62.1453785184077; Mon, 25 Jan 2016 21:13:04 -0800 (PST) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id g6sm10195784qgd.5.2016.01.25.21.13.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jan 2016 21:13:03 -0800 (PST) In-Reply-To: (Jerome L. Quinn's message of "Wed, 9 Oct 2013 14:04:12 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111974 Archived-At: Jerome L Quinn writes: > Eli Zaretskii wrote on 10/09/2013 12:59:26 PM: > >> From: Eli Zaretskii >> To: Stefan Monnier >> Cc: Jerome L Quinn/Watson/IBM@IBMUS, 15555@debbugs.gnu.org >> Date: 10/09/2013 12:59 PM >> Subject: Re: bug#15555: 24.3; Bidirectional display very slow with long lines >> >> > From: Stefan Monnier >> > Cc: Jerome L Quinn , 15555@debbugs.gnu.org >> > Date: Wed, 09 Oct 2013 08:26:58 -0400 >> > >> > >> And disabling bidi reordering completely eliminates the bad behavior. >> > > If you can afford that, go for it. >> > >> > IIRC this is the first report where setting bidi-display-reordering to >> > nil is really the best recommendation we can offer (and where it >> > apparently indeed helps significantly). >> >> Actually, it's not my recommendation. But the OP keeps claiming that >> nothing else works for him. >> >> My recommendation would be rather to make lines shorter. > > I can't make the lines shorter. The file I'm looking at is computer-generated. > > I can disable reordering, which does solve the speed problem for me. I'd just like > to help identify the source of the issue so that it can be resolved at some point. > >> > I consider bidi-display-reordering as a debugging tool rather than >> > a user config, so I'm not very happy about this situation. >> >> I'm not happy either (probably even less than you), but I'm not going >> to agree that slow redisplay of 14K-character lines has anything to do >> with bidirectional editing support. _Anything_ that slows down >> redisplay even a bit will have the same effect with such long lines, >> e.g., JIT font lock, Flyspell, invisible text, you name it. In fact, >> even on a reasonably fast machine (mine is a core i7 screamer) Emacs >> is unbearably slow with such long lines without reordering as well. >> Maybe the OP has an unreasonably fast machine, but that just makes his >> use case even more rare. > > I'm not sure what else I can do. I timed how long it takes to page down and > move the cursor and it's much slower with reordering enabled on my test > case. > > No, moving around with 14K lines and reordering off is not lightning fast. It > is however subsecond response on my machine. Reordering brings subsecond > response up to multiple seconds as you are further along the line. > > I am on a high-end 12 core xeon machine, so yes, the hardware is fast. FWIW, on Emacs 25 on Mac OS X, the bidi text as reported in the initial bug is still very slow.