From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Slow frame creation when many faces defined Date: Sun, 13 Nov 2005 15:54:24 -0500 Message-ID: References: <36FCC05F-335C-4636-AA20-9421BC6C3520@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1131915506 31718 80.91.229.2 (13 Nov 2005 20:58:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2005 20:58:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 13 21:58:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EbOv8-0003jz-Hr for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2005 21:57:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbOv6-0001uO-3p for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2005 15:57:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbOs4-0000Nj-HC for emacs-devel@gnu.org; Sun, 13 Nov 2005 15:54:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbOs2-0000MS-PZ for emacs-devel@gnu.org; Sun, 13 Nov 2005 15:54:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbOs1-0000Lx-10 for emacs-devel@gnu.org; Sun, 13 Nov 2005 15:54:38 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EbOs0-0005CC-WC for emacs-devel@gnu.org; Sun, 13 Nov 2005 15:54:37 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EbOro-0000ki-Cz; Sun, 13 Nov 2005 15:54:24 -0500 Original-To: David Reitter In-reply-to: <36FCC05F-335C-4636-AA20-9421BC6C3520@gmail.com> (message from David Reitter on Sat, 12 Nov 2005 19:56:24 +0000) 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:45892 Archived-At: In a realistic setting I've got around 400-600 faces listed in face- new-frame-defaults, but they are obviously more complex than what is created in the simplified example above. It might be possible to optimize the code that handles faces when creating a frame. That code is very complex, has many levels that were written at different times, and very likely is doing a lot of things the hard way. Rewriting it from scratch, after making a new design that is clear, could probably make it much faster. That would be a useful thing to do, but now is not the time to install it. I will add it to etc/TODO.