From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Windows: Emacs 24.1 binary size vs 24.2 binary size Date: Mon, 10 Sep 2012 10:58:42 -0400 Message-ID: References: <503D7C5B.4080701@gmail.com> <504219DA.20309@gmail.com> <83pq65g5lx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1347289161 31088 80.91.229.3 (10 Sep 2012 14:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 14:59:21 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Christoph Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 16:59:24 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TB5SH-0005aK-Py for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2012 16:59:17 +0200 Original-Received: from localhost ([::1]:60233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5SE-0002JN-GJ for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2012 10:59:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5S7-0001zq-8z for emacs-devel@gnu.org; Mon, 10 Sep 2012 10:59:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB5S1-0006sd-M5 for emacs-devel@gnu.org; Mon, 10 Sep 2012 10:59:07 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:18272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Rx-0006ry-29; Mon, 10 Sep 2012 10:58:57 -0400 Original-Received: from fmsmemgm.homelinux.net ([24.201.208.110]) by VL-VM-MR001.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MA5003IW2XV2Y40@VL-VM-MR001.ip.videotron.ca>; Mon, 10 Sep 2012 10:58:43 -0400 (EDT) Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A7715AE200; Mon, 10 Sep 2012 10:58:42 -0400 (EDT) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 24.201.245.36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153216 Archived-At: >> So I have no idea what could explain the 1.6MB decrease in the exe >> size. > Bisection via bootstraps lead to r108079 where the size decreases to 9,634 > KB. > Backport fix for Bug#11989 from trunk. > * mouse.el (mouse-drag-track): Do not set the mark if the user > releases the mouse without selecting anything. > Bootstrapping r108078 yields emacs.exe with 11,062KB, bootstrapping r108079 > yields 9,634KB. I did it multiple times to be sure. > Any ideas? That sounds weird, indeed. An explanation that comes to my mind goes along the following lines: little change in code => slight change in some part of the dump process => memory allocation pattern at that point is different => some memory zone that used to be `free'able now can't be freed any more because some surviving object is now placed in that zone rather in some other zone. IOW the actual live data is pretty much the same, but the larger binary has a lot more memory that's "allocated from the OS but kept in some free list". How do the Pure-hashed: Dumping under the name emacs pure bytes used compare between the two builds? Stefan