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 11:37:33 +0800 Message-ID: <87y5s0dd6q.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329536299 1409 80.91.229.3 (18 Feb 2012 03:38:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2012 03:38:19 +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 04:38:19 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 1Ryb7l-0002YJ-2s for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 04:38:13 +0100 Original-Received: from localhost ([::1]:59238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryb7k-00019j-In for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 22:38:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryb7f-00015O-Tv for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 22:38:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ryb7e-0003QZ-PJ for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 22:38:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryb7e-0003QO-Na for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 22:38:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ryb9W-0008FA-LC for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 22:40:03 -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 03:40: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.132953638831664 (code B ref 10835); Sat, 18 Feb 2012 03:40:02 +0000 Original-Received: (at 10835) by debbugs.gnu.org; 18 Feb 2012 03:39:48 +0000 Original-Received: from localhost ([127.0.0.1]:44210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ryb9E-0008Eb-Si for submit@debbugs.gnu.org; Fri, 17 Feb 2012 22:39:46 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33718 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ryb9A-0008EQ-TK for 10835@debbugs.gnu.org; Fri, 17 Feb 2012 22:39:42 -0500 Original-Received: from bb121-6-68-155.singnet.com.sg ([121.6.68.155]:58824 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Ryb7F-00073s-KE; Fri, 17 Feb 2012 22:37:42 -0500 In-Reply-To: <87y5s0yiwz.fsf@gnu.org> (Chong Yidong's message of "Sat, 18 Feb 2012 10:28:12 +0800") 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:56984 Archived-At: Chong Yidong 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.