From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Analysis of redisplay performance on Windows Date: Sun, 27 Jul 2008 21:18:28 -0400 Message-ID: <8763qqiz6j.fsf@stupidchicken.com> References: <87od4kuis1.fsf@stupidchicken.com> <488C45FF.2040509@gnu.org> <87tzebnizu.fsf@stupidchicken.com> <488CE8F6.5080001@gnu.org> <87iqurhupv.fsf@stupidchicken.com> <488CEE6B.6020600@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217207928 17837 80.91.229.12 (28 Jul 2008 01:18:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2008 01:18:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 28 03:19:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KNHOh-0006fF-9C for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2008 03:19:35 +0200 Original-Received: from localhost ([127.0.0.1]:40133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNHNm-0002x7-W8 for ged-emacs-devel@m.gmane.org; Sun, 27 Jul 2008 21:18:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNHNi-0002tv-QP for emacs-devel@gnu.org; Sun, 27 Jul 2008 21:18:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNHNh-0002py-5o for emacs-devel@gnu.org; Sun, 27 Jul 2008 21:18:34 -0400 Original-Received: from [199.232.76.173] (port=57267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNHNg-0002pm-U5 for emacs-devel@gnu.org; Sun, 27 Jul 2008 21:18:32 -0400 Original-Received: from c-24-63-201-57.hsd1.ma.comcast.net ([24.63.201.57]:20657 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNHNd-0002lp-5v; Sun, 27 Jul 2008 21:18:29 -0400 Original-Received: by furry (Postfix, from userid 1000) id B72E9C059; Sun, 27 Jul 2008 21:18:28 -0400 (EDT) In-Reply-To: <488CEE6B.6020600@gnu.org> (Jason Rumney's message of "Sun, 27 Jul 2008 22:53:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101609 Archived-At: Jason Rumney writes: > One difference between Emacs 22 and 23 is that we compute glyph > indexes properly in Emacs 23, while on 22 we use unicode code > points. Since we call font->encode_char once per character rather than > for a whole run, the overhead of selecting fonts into the GC is > multiplied. As I suggested in my earlier email, new functions in the > font backend interface to select a font for working with and releasing > it when done, would help, as we could then skip doing this in > functions like encode_char and text_extents. Could you suggest precisely what interface we need? I.e., could you suggest function names and rought docstrings?