From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Sun, 15 Jul 2007 18:53:51 -0400 Message-ID: References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1184540077 26313 80.91.229.12 (15 Jul 2007 22:54:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:54:37 +0000 (UTC) Cc: david.reitter@gmail.com, eliz@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 00:54:35 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 1IACz1-00046n-V9 for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 00:54:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACz1-0000IU-Kb for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 18:54:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IACxa-0008Bk-H8 for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:53:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IACxZ-0008BH-JO for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:53:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACxZ-0008B4-Cw for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:53:01 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IACxZ-0005WL-3n for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:53:01 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IACyN-0003sZ-7v; Sun, 15 Jul 2007 18:53:51 -0400 In-reply-to: (message from Stefan Monnier on Sat, 14 Jul 2007 21:29:49 -0400) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:74856 Archived-At: I'm thinking of doing ref-counts and COW, Will your cow orkers offer any help in implementing this? so by default, if the new frame is similar (e.g. on the same screen with the "same" frame parameters), so the faces are inherited. They can later get unshared if needed. If you're willing to redesign that much, I am sure you can make it work. While you are at it, you might be able to reduce the number of levels of data structure that we have for faces. That would make things simpler and easier to maintain.