From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Re: Analysis of redisplay performance on Windows Date: Mon, 28 Jul 2008 03:06:16 +0000 (UTC) Message-ID: 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> <8763qqiz6j.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217214410 31611 80.91.229.12 (28 Jul 2008 03:06:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2008 03:06:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 28 05:07:40 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 1KNJ5D-00033D-SQ for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2008 05:07:36 +0200 Original-Received: from localhost ([127.0.0.1]:40681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNJ4J-0005jh-Vb for ged-emacs-devel@m.gmane.org; Sun, 27 Jul 2008 23:06:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNJ4E-0005j0-MX for emacs-devel@gnu.org; Sun, 27 Jul 2008 23:06:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNJ4D-0005io-9A for emacs-devel@gnu.org; Sun, 27 Jul 2008 23:06:34 -0400 Original-Received: from [199.232.76.173] (port=49358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNJ4D-0005il-3H for emacs-devel@gnu.org; Sun, 27 Jul 2008 23:06:33 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:45655 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KNJ4C-0005zH-Ig for emacs-devel@gnu.org; Sun, 27 Jul 2008 23:06:32 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KNJ48-00036j-N7 for emacs-devel@gnu.org; Mon, 28 Jul 2008 03:06:28 +0000 Original-Received: from dpc67142130024.direcpc.com ([67.142.130.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2008 03:06:28 +0000 Original-Received: from Adrian.B.Robert by dpc67142130024.direcpc.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2008 03:06:28 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 67.142.130.24 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/523 (KHTML, like Gecko, Safari/523.10) OmniWeb/v621.0.99313) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:101619 Archived-At: Chong Yidong stupidchicken.com> writes: > > Jason Rumney gnu.org> writes: > > > 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. In the NS font driver (nsfont.m) these two functions cache info for each font by block of 256 (stored in nsfont_info -- nsterm.h). This made a significant different in rendering speed when I implemented it, and the memory cost is not high unless lots of different char ranges are being rendered in lots of different fonts. Moving this code up to font.c would be another option to consider.