[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows: Emacs 24.1 binary size vs 24.2 binary size

From: Stefan Monnier
Subject: Re: Windows: Emacs 24.1 binary size vs 24.2 binary size
Date: Mon, 10 Sep 2012 10:58:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>> 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: <FOO>
   Dumping under the name emacs
   <BAR> pure bytes used

compare between the two builds?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]