all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* reducing emacs size by more frequent garbage-collect in loadup.el
@ 2009-07-26 17:56 Dan Nicolaescu
  2009-07-26 18:32 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Nicolaescu @ 2009-07-26 17:56 UTC (permalink / raw)
  To: emacs-devel


As the Subject says, replacing each `load' line in loadup.el with 
`load' + `garbage-collect' will reduce the size of the stripped emacs
binary: (.7 is before, .8 is after the change)

$ ls -l emacs-23.1.50.8 emacs-23.1.50.7
-rwx------ 1 dann dann 6722788 Jul 24 14:20 emacs-23.1.50.8*
-rwx------ 1 dann dann 6857956 Jul 24 14:20 emacs-23.1.50.7*

$ size  emacs-23.1.50.8 emacs-23.1.50.7
   text    data     bss     dec     hex filename
1883659 4833256       0 6716915  667df3 emacs-23.1.50.8
1883659 4968424       0 6852083  688df3 emacs-23.1.50.7

so we get about 2% reduction by doing something very simple and safe... 

[This happens because loading multiple files generate more garbage that
can be collected, but it is not returned to the OS, so it appears in
the dumped image].

Should we make this change?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-16 19:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-26 17:56 reducing emacs size by more frequent garbage-collect in loadup.el Dan Nicolaescu
2009-07-26 18:32 ` Stefan Monnier
2009-07-26 18:57   ` Dan Nicolaescu
2009-07-26 21:06     ` Ken Raeburn
2009-07-26 22:19       ` Dan Nicolaescu
2009-08-16 19:06     ` Dan Nicolaescu
2009-07-27  2:00   ` Stephen J. Turnbull

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.