all messages for Emacs-related lists mirrored at yhetil.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 11:37:33 +0800	[thread overview]
Message-ID: <87y5s0dd6q.fsf@gnu.org> (raw)
In-Reply-To: <87y5s0yiwz.fsf@gnu.org> (Chong Yidong's message of "Sat, 18 Feb 2012 10:28:12 +0800")

Chong Yidong <cyd@gnu.org> writes:

> 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.

I just confirmed that the sluggishness goes away if I change
ansi-color.el to make it use text properties.  Wish I'd remembered to do
that before the pretest began.

Roughly what is happening, I think, is that when overlays are heavily
used and there are no paragraph breaks (e.g. from the `time' output),
the bidi code does enough the additional overlay lookups to produce a
noticeable slowdown.

I'm not sure what's the best fix right now, though.





  reply	other threads:[~2012-02-18  3:37 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
2012-02-18  3:37           ` Chong Yidong [this message]
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

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

  git send-email \
    --in-reply-to=87y5s0dd6q.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.