From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode Date: Fri, 17 Feb 2012 18:08:47 +0200 Message-ID: <837gzlwigg.fsf@gnu.org> References: <87mx8idnji.fsf@gnu.org> <8762f6dn85.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1329495030 2296 80.91.229.3 (17 Feb 2012 16:10:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2012 16:10:30 +0000 (UTC) Cc: 10835@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 17 17:10:28 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 1RyQOA-0007kh-Ff for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 17:10:26 +0100 Original-Received: from localhost ([::1]:52436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyQO9-0004XA-O7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 11:10:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyQNy-0004Wb-5I for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 11:10:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyQNs-0004DT-H6 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 11:10:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyQNs-0004DB-Eb for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 11:10:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RyQPi-0000Hv-4B for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 11:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2012 16:12: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.13294950851059 (code B ref 10835); Fri, 17 Feb 2012 16:12:02 +0000 Original-Received: (at 10835) by debbugs.gnu.org; 17 Feb 2012 16:11:25 +0000 Original-Received: from localhost ([127.0.0.1]:43867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyQP6-0000H2-Et for submit@debbugs.gnu.org; Fri, 17 Feb 2012 11:11:24 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42028) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyQP3-0000Gn-Rs for 10835@debbugs.gnu.org; Fri, 17 Feb 2012 11:11:23 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LZJ00600OKBBL00@a-mtaout22.012.net.il> for 10835@debbugs.gnu.org; Fri, 17 Feb 2012 18:09:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.150.51]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZJ0062OOVJ4PC0@a-mtaout22.012.net.il>; Fri, 17 Feb 2012 18:09:20 +0200 (IST) In-reply-to: <8762f6dn85.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:56973 Archived-At: > From: Chong Yidong > Date: Fri, 17 Feb 2012 13:48:26 +0800 > > It happens on both GUI sessions and TTY, run locally on an Intel i7 > processor; Emacs was compiled without optimizations. On an i7, I'd expect no slowdown at all. How much time does it take `ls' to produce that 2K-line listing on your machine, outside of Emacs and with a warm cache? Also, can you put a printf after this line from xdisp.c: else if (it->bidi_it.charpos == bob || (!string_p && (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n' || FETCH_CHAR (it->bidi_it.bytepos) == '\n'))) { /* If we are at the beginning of a line/string, we can produce the next element right away. */ bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it, 1); <<<<<< and tell me once in how many characters or lines of input from `ls' is bidi_paragraph_init called here? E.g., to see the character count, print it->bidi_it.charpos just before that line. (You could do the same from breakpoint commands, but I'm afraid that doing so will change the timing of how frequently the process output is read by Emacs, and will therefore produce a biased estimation.) TIA