From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: BASE_PURESIZE Date: Fri, 23 Oct 2009 04:58:30 -0700 (PDT) Message-ID: <200910231158.n9NBwUS2027817@godzilla.ics.uci.edu> 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 1256300083 17561 80.91.229.12 (23 Oct 2009 12:14:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 12:14:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 14:14:36 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 1N1J2P-0007Eo-0L for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 14:14:33 +0200 Original-Received: from localhost ([127.0.0.1]:58876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1J2O-0003O9-3R for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 08:14:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1IqN-0005Qy-4w for emacs-devel@gnu.org; Fri, 23 Oct 2009 08:02:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1IqG-0005PD-4c for emacs-devel@gnu.org; Fri, 23 Oct 2009 08:02:05 -0400 Original-Received: from [199.232.76.173] (port=54046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1IqF-0005P5-JN for emacs-devel@gnu.org; Fri, 23 Oct 2009 08:01:59 -0400 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]:52134) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N1IqB-0001kH-Qw; Fri, 23 Oct 2009 08:01:56 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id n9NBwUwo018888; Fri, 23 Oct 2009 04:58:30 -0700 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n9NBwUS2027817; Fri, 23 Oct 2009 04:58:30 -0700 (PDT) In-Reply-To: <8363a6gytm.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Oct 2009 13:00:05 +0200") Original-Lines: 40 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: n9NBwUwo018888 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116321 Archived-At: Eli Zaretskii writes: > Isn't the current definition of BASE_PURESIZE too large? > > #define BASE_PURESIZE (1430000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA) > > 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: > > MS-Windows: > (gdb) p pure_size > $1 = 1480000 > (gdb) p pure_bytes_used > $2 = 1357888 > > 64-bit GNU/Linux (--without-x): > (gdb) p pure_size > $1 = 2383333 > (gdb) p pure_bytes_used > $2 = 2015813 > > 64-bit GNU/Linux (with X): > (gdb) p pure_size > $1 = 2383333 > (gdb) p pure_bytes_used > $2 = 2193049 > > MS-DOS: > (gdb) p pure_size > $1 = 1440000 > (gdb) p pure_bytes_used > $2 = 1275442 > > GNU/Linux without-X is the extreme example: it wastes 370KB. > > How about reducing the 1430000 number above? I have a few pending changes that will make the sizes needed just under that, no need to fiddle with it all the time.