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#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode Date: Sat, 18 Feb 2012 10:27:18 +0200 Message-ID: <83zkcgv95l.fsf@gnu.org> References: <87mx8idnji.fsf@gnu.org> <8762f6dn85.fsf@gnu.org> <837gzlwigg.fsf@gnu.org> <87wr7ljr5g.fsf@gnu.org> <8362f5wc15.fsf@gnu.org> <87y5s0yiwz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1329553818 26240 80.91.229.3 (18 Feb 2012 08:30:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2012 08:30:18 +0000 (UTC) Cc: 10835@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 09:30:17 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RyfgK-0002J2-Hj for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 09:30:12 +0100 Original-Received: from localhost ([::1]:53158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyfgJ-0001ib-66 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 03:30:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyfgF-0001gz-RN for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 03:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyfgE-0005wi-Ac for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 03:30:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyfgE-0005vQ-6W for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 03:30:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ryfi6-0006Pv-Kj for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 03:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2012 08:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10835 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10835-submit@debbugs.gnu.org id=B10835.132955389324624 (code B ref 10835); Sat, 18 Feb 2012 08:32:02 +0000 Original-Received: (at 10835) by debbugs.gnu.org; 18 Feb 2012 08:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:44374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ryfhc-0006P7-FQ for submit@debbugs.gnu.org; Sat, 18 Feb 2012 03:31:32 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52492) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyfhZ-0006Op-W1 for 10835@debbugs.gnu.org; Sat, 18 Feb 2012 03:31:31 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LZK00C00Y0TW400@a-mtaout22.012.net.il> for 10835@debbugs.gnu.org; Sat, 18 Feb 2012 10:29:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.150.51]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZK00CNSY8XKYC0@a-mtaout22.012.net.il>; Sat, 18 Feb 2012 10:29:22 +0200 (IST) In-reply-to: <87y5s0yiwz.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56985 Archived-At: > From: Chong Yidong > Cc: 10835@debbugs.gnu.org > Date: Sat, 18 Feb 2012 10:28:12 +0800 > > Times are below. Another observation: with `time ls /usr/share/doc' > (which does use color highlighting), scrolling through the Shell buffer > is no longer sluggish. I think the output of `time' helps by providing > a paragraph break. Of course. That makes each 2000-line output a separate paragraph, as far as bidi is concerned. So you never get to the 7500-line limit of searching for paragraph beginning. When I tried to reproduce the problem on Windows, I manually edited away these empty lines (which are inserted in my case because the shell prompt on Windows always starts with a newline). > If I do plain `ls' (no `time'), then go back and edit the Shell buffer > manually by adding a C-q C-j line break after each prompt, that also > makes the scrolling sluggishness go away. Of course, for the same reasons. > In the Emacs 24 shell buffer, after 10 invocations: > > real 0m1.969s > user 0m0.008s > sys 0m0.004s Is this with the empty lines between invocations, or without? If the former, do the 2 seconds match your impression of sluggishness, i.e., do you indeed see Emacs take about 2 sec to insert the 10th listing into the shell buffer? Or does the insertion take much longer? (Timing with second-resolution can be done by just looking at your wallclock time.)