From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#6006: recent emacs binary size increase by 800KB Date: Thu, 22 Apr 2010 16:45:16 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271969774 19456 80.91.229.12 (22 Apr 2010 20:56:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2010 20:56:14 +0000 (UTC) Cc: 6006@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 22 22:56:13 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O53RT-00042m-NP for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Apr 2010 22:56:12 +0200 Original-Received: from localhost ([127.0.0.1]:33923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O53RS-0000HY-U0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Apr 2010 16:56:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O53Qk-0008Pn-Rv for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 16:55:26 -0400 Original-Received: from [140.186.70.92] (port=60950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O53Qh-0008OQ-Dg for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 16:55:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O53Qf-0006Ur-0f for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 16:55:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57575) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O53Qe-0006Ui-Up for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 16:55:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O53Hd-0002DR-L2; Thu, 22 Apr 2010 16:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Apr 2010 20:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6006-submit@debbugs.gnu.org id=B6006.12719691238509 (code B ref 6006); Thu, 22 Apr 2010 20:46:01 +0000 Original-Received: (at 6006) by debbugs.gnu.org; 22 Apr 2010 20:45:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O53H0-0002DC-K8 for submit@debbugs.gnu.org; Thu, 22 Apr 2010 16:45:22 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O53Gy-0002D5-M5 for 6006@debbugs.gnu.org; Thu, 22 Apr 2010 16:45:21 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O53Gu-0002G8-DX; Thu, 22 Apr 2010 16:45:16 -0400 In-Reply-To: (Stefan Monnier's message of "Thu\, 22 Apr 2010 15\:35\:00 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Apr 2010 16:46:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36429 Archived-At: Stefan Monnier writes: >> The "data" segment size has increased between the .2 and .3 version >> by 800KB. > [...] >> * loadup.el: Setup hash-cons for pure data. > > Yes, this patch makes Emacs use free up a fairly large hash-table just > before dumping, so its image is larger, with a fair amount of memory > that's not actually used (it's still allocated to the Emacs process but > Emacs has it registered as "free for reuse"). > > Some of that memory can be recovered by adjusting the size of the > pure-space (since the patch reduces the pure-space usage but didn't > reduce the redefined size of the pure space), but not all. > > This said, I don't think it's a real problem since that memory is not > really wasted (it will be used when Emacs starts to allocate), other > than on the disk. Part of that memory will be read from the disk at start up.... What if you allocate the hash table with a bigger size when creating it? and maybe prefill it too. That way there's a higher chance that the memory will be returned to the OS when freed...