From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Sat, 14 Jul 2007 21:53:38 +0100 Message-ID: References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184446433 30404 80.91.229.12 (14 Jul 2007 20:53:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2007 20:53:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 14 22:53:51 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 1I9och-0006jx-0a for ged-emacs-devel@m.gmane.org; Sat, 14 Jul 2007 22:53:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9ocf-0001kW-VL for ged-emacs-devel@m.gmane.org; Sat, 14 Jul 2007 16:53:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I9occ-0001k5-AC for emacs-devel@gnu.org; Sat, 14 Jul 2007 16:53:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I9oca-0001j5-Gt for emacs-devel@gnu.org; Sat, 14 Jul 2007 16:53:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9oca-0001iy-4U for emacs-devel@gnu.org; Sat, 14 Jul 2007 16:53:44 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I9ocZ-0006MU-MN for emacs-devel@gnu.org; Sat, 14 Jul 2007 16:53:43 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 34so928120ugf for ; Sat, 14 Jul 2007 13:53:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=LogbIcbQZaSHthh4Rz0NYNbuiHccUpaqcp1CSs6GGFlSI2lXJomZrf2rgb+TgaJo6BbRD12JdJKXj1GH/qz++nhkQTwD5v9h2SJ+3La1k5xHsd1LfgiAEGTlgrURlv4Zb3SiOqNlkbYdTZn6OMV8NLPaRKYLnz+S25MAwK4cdVg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=miymQ4+G79F/1Hef/be6zpwnCPcv6lljEPVNne8eHsSMrTaUC19ZDrmNFDyBLSdZ+ar8ekwytgOcbQfZGRBWmKcRgrlv5JF2G79MYsaQmVgISgJ8yZXfUaDxWpqJQhbds0QYGCoPl0wWPn4oIK6Y8oU93xTsm6BjvogqoS++BTY= Original-Received: by 10.66.222.19 with SMTP id u19mr1599315ugg.1184446421864; Sat, 14 Jul 2007 13:53:41 -0700 (PDT) Original-Received: from ?192.168.1.108? ( [84.68.97.191]) by mx.google.com with ESMTP id y37sm37450238iky.2007.07.14.13.53.40 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2007 13:53:40 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:74784 Archived-At: On 14 Jul 2007, at 02:55, Stefan Monnier wrote: > 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] Sounds like a good idea. Almost all the time is spent on importing those X resources. I commented this out and it seems to work just fine for me (no X). On Mac and Windows window systems, is there a reason why X resources should be supported in the first place? Sharing the faces between frames would be good to. Can faces be deleted? No? This is probably why more and more faces accumulate over time (when you use something like color-theme, e.g.). What is the memory footprint of a single frame then?