From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode Date: Sat, 18 Feb 2012 10:28:12 +0800 Message-ID: <87y5s0yiwz.fsf@gnu.org> References: <87mx8idnji.fsf@gnu.org> <8762f6dn85.fsf@gnu.org> <837gzlwigg.fsf@gnu.org> <87wr7ljr5g.fsf@gnu.org> <8362f5wc15.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329532154 12284 80.91.229.3 (18 Feb 2012 02:29:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2012 02:29:14 +0000 (UTC) Cc: 10835@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 03:29:13 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 1Rya2x-000229-Ar for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 03:29:11 +0100 Original-Received: from localhost ([::1]:50101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rya2w-0007yn-Hq for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 21:29:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rya2t-0007yX-98 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 21:29:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rya2s-0004XM-4z for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 21:29:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rya2r-0004XG-WA for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 21:29:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rya4k-0006iD-3S for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 21:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2012 02:31:01 +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.132953222025753 (code B ref 10835); Sat, 18 Feb 2012 02:31:01 +0000 Original-Received: (at 10835) by debbugs.gnu.org; 18 Feb 2012 02:30:20 +0000 Original-Received: from localhost ([127.0.0.1]:44205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rya44-0006hK-JD for submit@debbugs.gnu.org; Fri, 17 Feb 2012 21:30:20 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:32868 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rya42-0006hB-BC for 10835@debbugs.gnu.org; Fri, 17 Feb 2012 21:30:19 -0500 Original-Received: from bb121-6-68-155.singnet.com.sg ([121.6.68.155]:58807 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rya28-0006ai-Fj; Fri, 17 Feb 2012 21:28:21 -0500 In-Reply-To: <8362f5wc15.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Feb 2012 20:27:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) 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:56983 Archived-At: I just noticed that when I do `ls --color=no' rather than just `ls', insertion and scrolling are very fast. The sluggishness only appears when ls color highlighting is enabled. So the inefficiency of ansi-color.el, and its use of overlays, seems to play a role. Eli Zaretskii writes: > What does "time ls /usr/share/doc" say, when you run it from the shell > buffer? What are the times it reports, and are they approximately the > same in each of the 4 invocations? 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. 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. In xterm (speed is the same after repeated invocations): real 0m0.148s user 0m0.008s sys 0m0.020s In xterm, with --color=no: real 0m0.039s user 0m0.004s sys 0m0.008s In the Emacs 23 shell buffer, on the first invocation: real 0m0.378s user 0m0.008s sys 0m0.008s In the Emacs 24 shell buffer, on the first invocation: real 0m0.866s user 0m0.008s sys 0m0.004s In the Emacs 24 shell buffer, after 10 invocations: real 0m1.969s user 0m0.008s sys 0m0.004s In the Emacs 24 shell buffer, with --color=no: real 0m0.296s user 0m0.000s sys 0m0.008s In the Emacs 24 shell buffer, with --color=no, after 10 invocations: real 0m0.280s user 0m0.004s sys 0m0.012s