From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15555: 24.3; Bidirectional display very slow with long lines Date: Wed, 19 Feb 2014 19:39:57 +0200 Message-ID: <83d2ij57de.fsf@gnu.org> References: <83wqlo461e.fsf@gnu.org> <8338obskk4.fsf@gnu.org> <83iox6qt1t.fsf@gnu.org> <53035588.3080705@dev.rtsoft.ru> <838ut871wu.fsf@gnu.org> <53048C43.7090304@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392834278 4086 80.91.229.3 (19 Feb 2014 18:24:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 18:24:38 +0000 (UTC) Cc: 15555@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 19 19:24:46 2014 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 1WGBp7-0001GQ-WB for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 19:24:46 +0100 Original-Received: from localhost ([::1]:32963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBp7-0008I9-J9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 13:24:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBoW-0007Uy-5d for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGBoO-0003t7-8D for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBoO-0003t1-5S for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGB7r-0003FG-0F for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 12:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2014 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15555 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15555-submit@debbugs.gnu.org id=B15555.139283159812458 (code B ref 15555); Wed, 19 Feb 2014 17:40:02 +0000 Original-Received: (at 15555) by debbugs.gnu.org; 19 Feb 2014 17:39:58 +0000 Original-Received: from localhost ([127.0.0.1]:60517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGB7l-0003Es-WA for submit@debbugs.gnu.org; Wed, 19 Feb 2014 12:39:58 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49263) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGB7h-0003Ec-Lr for 15555@debbugs.gnu.org; Wed, 19 Feb 2014 12:39:54 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N19006007N9QZ00@a-mtaout20.012.net.il> for 15555@debbugs.gnu.org; Wed, 19 Feb 2014 19:39:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N19006JO7Q9LJ40@a-mtaout20.012.net.il>; Wed, 19 Feb 2014 19:39:46 +0200 (IST) In-reply-to: <53048C43.7090304@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:85897 Archived-At: > Date: Wed, 19 Feb 2014 14:49:39 +0400 > From: Dmitry Antipov > CC: 15555@debbugs.gnu.org > > On 02/18/2014 09:42 PM, Eli Zaretskii wrote: > > > Anyway, just moving cursor horizontally cannot possibly be slow due to > > bidi, especially as long as point stays in the same screenful. The > > redisplay becomes unbearably slow with long lines only when you either > > scroll the display (e.g., C-v) or for vertical cursor motion, because > > these require the display engine to traverse many buffer positions, > > many more than is needed to just move the cursor, and it currently can > > only start that traversal from the beginning of a physical line. > > 1) I realize that vertical motion is slower than horizontal, but [2] from > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15555#65 shows that the major > slowdown happens when cursor is moved horizontally (by right-char) within > the same line. According to the value of point that you gave, this happens when the next buffer position, the one where right-char should move, is beyond the window, i.e. not on the same screen line. Did you try enlarging the window so that the entire text of 4000.txt fits in the window? Do you still see slow cursor movement in that case? > 2) (setq bidi-display-reordering nil) helps bug15555 to run over 4000.txt > just as expected. Of course, because then the bug I described, which causes endless re-entering of redisplay, doesn't happen. IOW, this is a bug in that specific situation, not a slow-down.