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#9771: 24.0.90; Redisplay problems with control characters Date: Thu, 20 Oct 2011 14:43:45 +0200 Message-ID: <834nz3u932.fsf@gnu.org> References: <871uucr2w1.fsf@gnu.org> <874nz79vo1.fsf@gnu.org> <83lisiutha.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1319114649 27870 80.91.229.12 (20 Oct 2011 12:44:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 12:44:09 +0000 (UTC) To: bojohan@gnu.org, 9771@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 14:44:03 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 1RGryd-0005AQ-0V for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2011 14:44:03 +0200 Original-Received: from localhost ([::1]:46715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGryc-00076K-Gc for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2011 08:44:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGryZ-000765-Hu for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 08:44:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGryX-00024k-4v for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 08:43:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGryW-00024c-NZ for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 08:43:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGrzc-0001n2-EL for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 08:45:04 -0400 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: Thu, 20 Oct 2011 12:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9771-submit@debbugs.gnu.org id=B9771.13191147006845 (code B ref 9771); Thu, 20 Oct 2011 12:45:04 +0000 Original-Received: (at 9771) by debbugs.gnu.org; 20 Oct 2011 12:45:00 +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 1RGrzY-0001mM-GU for submit@debbugs.gnu.org; Thu, 20 Oct 2011 08:45:00 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGrzV-0001mA-QP for 9771@debbugs.gnu.org; Thu, 20 Oct 2011 08:44:59 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LTD00D006ZKHH00@a-mtaout22.012.net.il> for 9771@debbugs.gnu.org; Thu, 20 Oct 2011 14:43:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTD00CM07CUO5C0@a-mtaout22.012.net.il>; Thu, 20 Oct 2011 14:43:43 +0200 (IST) In-reply-to: <83lisiutha.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 20 Oct 2011 08:45:04 -0400 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:52917 Archived-At: > Date: Tue, 18 Oct 2011 18:58:41 +0200 > From: Eli Zaretskii > Cc: 9771@debbugs.gnu.org > > > Date: Tue, 18 Oct 2011 08:56:34 -0400 > > From: Eli Zaretskii > > Cc: 9771@debbugs.gnu.org > > > > Anyway, this being so, I found a way to optimize a couple of expensive > > loops inside bidi.c for the important special case of a plain L2R text > > in the buffer. With these optimizations, the bidi redisplay of the > > entire window showing a buffer with 2000 binary nulls is only a few > > milliseconds slower than the unidirectional one. > > > > I will install those changes later today, after some more testing. > > Done (revision 106124 on the trunk). For the record, revision 106151 speeds up the bidi display in a more general class of use cases. (Previously, appending some character, like `a', to the 2000 nulls in the original example would still slow down redisplay, even after the changes in r106124.)