unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10835@debbugs.gnu.org
Subject: bug#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode
Date: Sat, 18 Feb 2012 10:28:12 +0800	[thread overview]
Message-ID: <87y5s0yiwz.fsf@gnu.org> (raw)
In-Reply-To: <8362f5wc15.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Feb 2012 20:27:34 +0200")

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 <eliz@gnu.org> 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





  reply	other threads:[~2012-02-18  2:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  5:41 bug#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode Chong Yidong
2012-02-17  5:48 ` Chong Yidong
2012-02-17  8:21   ` Andreas Schwab
2012-02-17 13:42     ` Chong Yidong
2012-02-17 16:08   ` Eli Zaretskii
2012-02-17 17:39     ` Chong Yidong
2012-02-17 18:27       ` Eli Zaretskii
2012-02-18  2:28         ` Chong Yidong [this message]
2012-02-18  3:37           ` Chong Yidong
2012-02-18  8:49             ` Eli Zaretskii
2012-02-18 14:14               ` Eli Zaretskii
2012-02-19 14:07               ` Chong Yidong
2012-02-18  8:27           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5s0yiwz.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=10835@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).