From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: BASE_PURESIZE Date: Sat, 24 Oct 2009 12:22:04 +0200 Message-ID: <83ocnxf5wz.fsf@gnu.org> References: <8363a6gytm.fsf@gnu.org> <87ljj1bdyp.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1256379775 29725 80.91.229.12 (24 Oct 2009 10:22:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2009 10:22:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 24 12:22:48 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 1N1dln-0000Up-JV for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2009 12:22:47 +0200 Original-Received: from localhost ([127.0.0.1]:44440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1dlm-0007Lp-Mz for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2009 06:22:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1dle-0007KQ-AQ for emacs-devel@gnu.org; Sat, 24 Oct 2009 06:22:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1dlZ-0007JO-JF for emacs-devel@gnu.org; Sat, 24 Oct 2009 06:22:37 -0400 Original-Received: from [199.232.76.173] (port=49716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1dlZ-0007JF-AV for emacs-devel@gnu.org; Sat, 24 Oct 2009 06:22:33 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:44213) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1dlY-00065U-UG for emacs-devel@gnu.org; Sat, 24 Oct 2009 06:22:33 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KS000G00KHLRC00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 24 Oct 2009 12:22:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.77.20]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KS000F4LKSR9F60@a-mtaout20.012.net.il>; Sat, 24 Oct 2009 12:22:04 +0200 (IST) In-reply-to: <87ljj1bdyp.fsf@uwakimon.sk.tsukuba.ac.jp> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:116361 Archived-At: > From: "Stephen J. Turnbull" > Date: Sat, 24 Oct 2009 13:41:50 +0900 > > 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. First, we had changes committed lately that save much less than that (FWIW, I support them). The memory size is large nowadays, but it's all taken by programs that have even larger memory footprint. More importantly, I think the issue here is that the numbers I presented indicate that there's something wrong with the way we compute PURESIZE, because on some hosts it seems to be exactly right, while on others it wastes a lot of memory. > 3. To save the space, dump twice, the second time using the precise > number you can measure from the first try. PURESIZE is a compile-time C constant, it cannot be changed at dump time. You need to recompile.