From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Q on performance with 10000 faces Date: Mon, 5 Jun 2006 23:53:07 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149576939 16184 80.91.229.2 (6 Jun 2006 06:55:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2006 06:55:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 06 08:55:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FnVTN-0006nD-J6 for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2006 08:55:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnVTN-0006XI-6o for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2006 02:55:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnVRD-0005dq-CQ for emacs-devel@gnu.org; Tue, 06 Jun 2006 02:53:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnVRC-0005dH-1o for emacs-devel@gnu.org; Tue, 06 Jun 2006 02:53:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnVRB-0005dB-LI for emacs-devel@gnu.org; Tue, 06 Jun 2006 02:53:13 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FnVYU-0005qM-RB for emacs-devel@gnu.org; Tue, 06 Jun 2006 03:00:47 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k566rAPa007066 for ; Tue, 6 Jun 2006 00:53:11 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw5-141-144-105-128.vpn.oracle.com [141.144.105.128]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k566r909000498 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 6 Jun 2006 00:53:10 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:55745 Archived-At: > In any case, even without any special attempt at > optimization, the palette seems quite usable. I'm sure > there is room for optimization of my code, even > apart from any possible improvement in Emacs' display of > faces. Did you consider using images as I suggested. Yes. I wanted to do it with faces ;-). It's worth doing with images also. I still think Emacs should not slow down appreciably just because an application uses lots of faces - unless you are doing something with those faces (e.g. updating them) dynamically. I think there might be something to look into there (after the release, if someone knowledgeable is interested). But I know nothing about the display code; I'm just being stubbornly optimistic. That must be quite trivial, and besides running faster (I assume) Yes, I'm sure that using an image would be both easy and fast. Sometimes I like hard and slow ;-). you get over problems with font selection that you have now. Not a problem. The code works fine with any font - you just get a larger or smaller palette. The problem was that I was assuming that everyone had a particular font - now the font is an option. I'm very ignorant wrt fonts. I was mainly pointing out my ignorance and the poor shape of the Emacs doc about fonts.