From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: BASE_PURESIZE Date: Sat, 24 Oct 2009 13:41:50 +0900 Message-ID: <87ljj1bdyp.fsf@uwakimon.sk.tsukuba.ac.jp> References: <8363a6gytm.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256358723 19334 80.91.229.12 (24 Oct 2009 04:32:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2009 04:32:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 24 06:31:56 2009 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 1N1YIF-0007Rc-7F for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2009 06:31:55 +0200 Original-Received: from localhost ([127.0.0.1]:46813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1YIE-0004da-KX for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2009 00:31:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1YI8-0004bj-Ts for emacs-devel@gnu.org; Sat, 24 Oct 2009 00:31:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1YI3-0004b2-E1 for emacs-devel@gnu.org; Sat, 24 Oct 2009 00:31:47 -0400 Original-Received: from [199.232.76.173] (port=32783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1YI3-0004au-7v for emacs-devel@gnu.org; Sat, 24 Oct 2009 00:31:43 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:51894) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1YI2-00016R-Pe for emacs-devel@gnu.org; Sat, 24 Oct 2009 00:31:43 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id BC6591535AE for ; Sat, 24 Oct 2009 13:31:39 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 5E8A11A2666; Sat, 24 Oct 2009 13:41:50 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" b2155de544cf XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/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:116348 Archived-At: Juanma Barranquero writes: > On Fri, Oct 23, 2009 at 13:00, Eli Zaretskii wrote: > > > I looked at the values of pure_size vs pure_bytes_used in several > > builds on several platforms, and I see that we are wasting at least > > 130KB: [...] > on Windows I get [...] > or about 252 KiB wasted. Three comments: 1. XEmacs abandoned pure space years ago on the assumption that (bugs aside) copy-on-write means that dumped text will be shared anyway. Is that incorrect? 2. 252 KiB is not negligible, I suppose, but these days the systems Emacs runs on typically sport >1GB of memory, and since that's pure space even with multiple instances of Emacs running that is all that will be wasted ever. 3. To save the space, dump twice, the second time using the precise number you can measure from the first try. Unlike the Lisp compilation stage, this takes less than an extra minute IIRC. If you still care about the extra time, make the second dump part of the install target.