From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9470: 24.0.50; Possible bidi-related slowness Date: Sat, 10 Sep 2011 23:06:06 -0400 Message-ID: References: <83mxecxhl1.fsf@gnu.org> <83k49gxgol.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315710417 27451 80.91.229.12 (11 Sep 2011 03:06:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 03:06:57 +0000 (UTC) Cc: 9470@debbugs.gnu.org, Lars Magne Ingebrigtsen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 05:06:53 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2aNh-0002AO-4D for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 05:06:53 +0200 Original-Received: from localhost ([::1]:58558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2aNg-0002gk-C8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Sep 2011 23:06:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2aNd-0002gU-Ui for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2011 23:06:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2aNc-0007E2-UT for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2011 23:06:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2aNc-0007Dv-Sf for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2011 23:06:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R2aRh-0000xV-Tc; Sat, 10 Sep 2011 23:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2011 03:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9470-submit@debbugs.gnu.org id=B9470.13157106233642 (code B ref 9470); Sun, 11 Sep 2011 03:11:01 +0000 Original-Received: (at 9470) by debbugs.gnu.org; 11 Sep 2011 03:10:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2aR5-0000wg-En for submit@debbugs.gnu.org; Sat, 10 Sep 2011 23:10:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2aR3-0000wZ-An for 9470@debbugs.gnu.org; Sat, 10 Sep 2011 23:10:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPQkbE5FxK3+/2dsb2JhbABBqBh5gVIBAQQBViMQCzQSFBgNJIgKtD6GbgSgMoRD X-IronPort-AV: E=Sophos;i="4.68,362,1312171200"; d="scan'208";a="135613327" Original-Received: from 69-196-173-254.dsl.teksavvy.com (HELO ceviche.home) ([69.196.173.254]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Sep 2011 23:06:06 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8C1B9663AA; Sat, 10 Sep 2011 23:06:06 -0400 (EDT) In-Reply-To: <83k49gxgol.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Sep 2011 23:53:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 10 Sep 2011 23:11:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50830 Archived-At: >> > The question is, what is "exciting", and what should we do when we >> > "bail out"? >> I defer to you what would be exciting. :-) I would have thought the >> presence of no strongly R2L characters would be a measure of >> non-excitingness... > The long search is for the paragraph beginning. Looking for R2L > characters during that search will slow it even more. > Anyway, I reopened the bug and will try to think of something. I think Lars's point is a good one: maybe the paragraph direction can be based on the predominance of L2R or R2L chars in the previous N chars, in case the paragraph beginning is further than that (N should be large enough to include all chars displayed). Otherwise, I think the only way to make it faster is by caching the result of the computation (I suspect you already do some caching, but maybe we just need to be more aggressive). Stefan