From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Fri, 13 Jul 2007 21:55:44 -0400 Message-ID: References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184378166 29174 80.91.229.12 (14 Jul 2007 01:56:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2007 01:56:06 +0000 (UTC) Cc: David Reitter , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 14 03:56:04 2007 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 1I9WrY-0008Vf-Td for ged-emacs-devel@m.gmane.org; Sat, 14 Jul 2007 03:56:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9WrY-00007g-C4 for ged-emacs-devel@m.gmane.org; Fri, 13 Jul 2007 21:56:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I9WrV-00007Z-Iq for emacs-devel@gnu.org; Fri, 13 Jul 2007 21:55:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I9WrV-00007N-58 for emacs-devel@gnu.org; Fri, 13 Jul 2007 21:55:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9WrU-00007K-Ve for emacs-devel@gnu.org; Fri, 13 Jul 2007 21:55:56 -0400 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I9WrT-0004ch-QY; Fri, 13 Jul 2007 21:55:56 -0400 Original-Received: from ceviche.home ([70.55.146.63]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070714015554.ZZR13659.tomts13-srv.bellnexxia.net@ceviche.home>; Fri, 13 Jul 2007 21:55:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7B0C2B4BCA; Fri, 13 Jul 2007 21:55:43 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Fri\, 13 Jul 2007 19\:08\:52 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:74757 Archived-At: > Frame creation time improves tremendously when I take out that call > to `make-face-x-resource-internal'. > Is the import of x-resources necessary on Mac and Windows? > I think it has to be done when the frame is created > because there is no chance to do it later. What if there are no face specifications in the X resources? The current code checks every possible X resource setting for every face. Why not list the resources instead and interpret them? [ At least in my case it would probbaly be much faster since I shouldn't have any settings in there] Stefan