From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Re: merge emacs-bidi into the main tree Date: Tue, 12 Aug 2003 10:48:58 +0200 Sender: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Message-ID: <3791-Tue12Aug2003104858+0300-eliz@elta.co.il> References: <87lluax3ch.fsf@emacswiki.org> <7458-Sun03Aug2003224354+0300-eliz@elta.co.il> <87smoi9p64.fsf@emacswiki.org> <87he4x5v7x.fsf_-_@emacswiki.org> <86brv0wfyn.fsf@gerd.free-bsd.org> <6480-Fri08Aug2003180204+0300-eliz@elta.co.il> <8665l886vu.fsf@gerd.free-bsd.org> <200308120149.KAA23819@etlken.m17n.org> <9743-Tue12Aug2003085951+0300-eliz@elta.co.il> <200308120718.QAA24158@etlken.m17n.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060675032 25505 80.91.224.253 (12 Aug 2003 07:57:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2003 07:57:12 +0000 (UTC) Cc: gerd.moellmann@t-online.de, emacs-devel@gnu.org, emacs-bidi@gnu.org, developer@arabeyes.org, alex@emacswiki.org Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Tue Aug 12 09:57:07 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mU1j-0002Ss-00 for ; Tue, 12 Aug 2003 09:57:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mTzK-0001gs-F7 for gnu-emacs-bidi@m.gmane.org; Tue, 12 Aug 2003 03:54:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mTz6-0001do-Bf for emacs-bidi@gnu.org; Tue, 12 Aug 2003 03:54:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mTyZ-0001Nr-0S for emacs-bidi@gnu.org; Tue, 12 Aug 2003 03:54:22 -0400 Original-Received: from [192.114.186.15] (helo=balder.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mTy1-0001BZ-Kk; Tue, 12 Aug 2003 03:53:17 -0400 Original-Received: from zaretski (pns03-209-21.inter.net.il [80.230.209.21]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.3-GR) with ESMTP id CPX72141; Tue, 12 Aug 2003 10:52:56 +0300 (IDT) Original-To: handa@m17n.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200308120718.QAA24158@etlken.m17n.org> (message from Kenichi Handa on Tue, 12 Aug 2003 16:18:12 +0900 (JST)) X-BeenThere: emacs-bidi@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Discussion of Emacs support for multi-directional text. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bidi:146 gmane.emacs.devel:15900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15900 > Date: Tue, 12 Aug 2003 16:18:12 +0900 (JST) > From: Kenichi Handa > > Then, it seems that what you've done is not that different > from the current emacs-bidi. In most cases, we anyway move > the iterator all over "abcdABCDefg". Your code caches only > some crucial information, so get_next_display_element will > need some work at C B A e f g. My code caches all > information given by get_next_display_element, so > get_next_display_element will work fast at C B A e f g. Right. IIRC, Gerd did not like the caching of glyph matrix elements. I think he felt that producing the information stored in the glyph is expensive, and so doing that unnecessarily would hamper performance. The information my code caches is only relevant to the bidi properties of the characters, which need to be computed anyway to decide what is the next character in the visual order.