From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Mon, 16 Jul 2007 00:02:17 +0200 Message-ID: <469A9969.2080003@swipnet.se> References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> <469A260F.7010204@swipnet.se> <85ir8lvjzh.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1184536999 18682 80.91.229.12 (15 Jul 2007 22:03:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:03:19 +0000 (UTC) Cc: David Reitter , Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 00:03:16 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 1IACBP-00022T-F4 for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 00:03:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACBP-0007uM-77 for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 18:03:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IACBM-0007u5-DO for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:03:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IACBK-0007ss-QC for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:03:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACBK-0007sc-Gq for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:03:10 -0400 Original-Received: from av12-2-sn2.hy.skanova.net ([81.228.8.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IACBI-0006qC-C2; Sun, 15 Jul 2007 18:03:08 -0400 Original-Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 708D43806B; Mon, 16 Jul 2007 00:03:07 +0200 (CEST) Original-Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 42E5337E46; Mon, 16 Jul 2007 00:03:07 +0200 (CEST) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id 4329537E47; Mon, 16 Jul 2007 00:03:06 +0200 (CEST) User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) In-Reply-To: <85ir8lvjzh.fsf@lola.goethe.zz> X-detected-kernel: Linux 2.4-2.6 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:74846 Archived-At: David Kastrup skrev: > Jan Dj=E4rv writes: >=20 >> Stefan Monnier skrev: >>>>> Sharing the faces between frames would be good to. >>>> What kind of sharing do you have in mind? Faces are frame-specific, >>>> so changing a face generally affects only the frame for which it is >>>> changed. If the suggested sharing will defeat this, I don't think >>>> it's a good idea. >>> I'm thinking of doing ref-counts and COW, so by default, if the new f= rame is >>> similar (e.g. on the same screen with the "same" frame parameters), s= o the >>> faces are inherited. They can later get unshared if needed. >>> >> What if X resources changed between creation of the first and second f= rame? >=20 > What if? We don't track the changes of X resources in real-time for > the first frame, so what problem is there in not tracking them between > frames? Not a problem, but it is a change of behaviour. If we do this change, we= =20 should make sure X resources are read only once. Jan D.