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 frame creation when many faces defined Date: Tue, 15 Nov 2005 11:51:12 +0000 Message-ID: <0A5ED71E-9233-4B7D-8192-0AF105DDE630@gmail.com> References: <36FCC05F-335C-4636-AA20-9421BC6C3520@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132059478 18320 80.91.229.2 (15 Nov 2005 12:57:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Nov 2005 12:57:58 +0000 (UTC) Cc: Emacs-Devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 15 13:57:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ec0NR-0000Pb-BP for ged-emacs-devel@m.gmane.org; Tue, 15 Nov 2005 13:57:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec0NQ-0000to-C6 for ged-emacs-devel@m.gmane.org; Tue, 15 Nov 2005 07:57:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbzLM-00059J-Is for emacs-devel@gnu.org; Tue, 15 Nov 2005 06:51:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbzLL-00058q-5O for emacs-devel@gnu.org; Tue, 15 Nov 2005 06:51:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbzLK-00058k-Dl for emacs-devel@gnu.org; Tue, 15 Nov 2005 06:51:18 -0500 Original-Received: from [64.233.162.202] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EbzLK-0006cY-LE for emacs-devel@gnu.org; Tue, 15 Nov 2005 06:51:18 -0500 Original-Received: by zproxy.gmail.com with SMTP id j2so1398953nzf for ; Tue, 15 Nov 2005 03:51:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=fYRuiF1zd3/sPaDf9SyG+7tz8X6q1rymQUVM+mho0YIrvgwoMQXfqZNNPV4gVBC9V+K9Hminv2iGNZzSrIuLIGRVA7/g+2pcI73UxEgsDWnW44Xn2GhnGltG0qMXybQ44jZmDF5RG5KEv4AVmU+XL1FaK4WCocUxASmUCg3HFyc= Original-Received: by 10.65.126.9 with SMTP id d9mr761381qbn; Tue, 15 Nov 2005 03:51:17 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.gmail.com with ESMTP id e16sm743134qba.2005.11.15.03.51.16; Tue, 15 Nov 2005 03:51:16 -0800 (PST) In-Reply-To: Original-To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.746.2) 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:46014 Archived-At: On 15 Nov 2005, at 08:11, YAMAMOTO Mitsuharu wrote: > > As you may have already noticed, the Carbon version is much slower > than the X11 version for this example. The reason is that the X > Resource Manager emulation function consumes some short-lived objects > for each query, and a number of calls of this function causes frequent > GCs. > > I installed some changes for this problem. Frame creation is still > slow, but should be better than before. Thanks. It's looking significantly better now indeed. The underlying problem in terms of faces management remains: a lot of copying and checking (of the global list) when a new frame is created, and a global list of faces that gets longer and longer over time. It still takes too much time, in particular since people are used to a zippy Emacs... - D