GNU bug report logs - #10835
24.0.93; bidi-paragraph-direction slows down Shell mode

Previous Next

Package: emacs;

Reported by: Chong Yidong <cyd <at> gnu.org>

Date: Fri, 17 Feb 2012 05:44:02 UTC

Severity: normal

Found in version 24.0.93

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 10835 <at> 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
Chong Yidong <cyd <at> 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.




This bug report was last modified 13 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.