From: Dan Nicolaescu <dann@ics.uci.edu>
To: bug-gnu-emacs <bug-gnu-emacs@gnu.org>
Subject: bug#4287: reducing emacs size by more frequent garbage-collect calls in loadup.el
Date: Sat, 29 Aug 2009 11:41:58 -0700 (PDT) [thread overview]
Message-ID: <200908291841.n7TIfw4E003762@godzilla.ics.uci.edu> (raw)
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].
See the discussion on this topic on emacs-devel:
http://permalink.gmane.org/gmane.emacs.devel/113176
next reply other threads:[~2009-08-29 18:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200909170617.n8H6HvDs020712@godzilla.ics.uci.edu>
2009-08-29 18:41 ` Dan Nicolaescu [this message]
2009-08-29 21:34 ` bug#4287: reducing emacs size by more frequent garbage-collect calls in loadup.el Stefan Monnier
2009-08-30 6:09 ` Dan Nicolaescu
2009-08-30 18:00 ` Eli Zaretskii
2009-08-30 20:04 ` Stefan Monnier
2009-08-30 20:45 ` Juanma Barranquero
2009-08-31 14:46 ` bug#4287: reducing emacs size by more frequent garbage-collect Stefan Monnier
2009-09-01 11:44 ` Juanma Barranquero
2009-09-01 16:21 ` Stefan Monnier
2009-09-01 21:33 ` Juanma Barranquero
2009-08-30 23:55 ` bug#4287: reducing emacs size by more frequent garbage-collect calls in loadup.el Juri Linkov
2009-08-31 4:25 ` Dan Nicolaescu
2009-08-31 14:49 ` Stefan Monnier
2009-09-01 0:57 ` Dan Nicolaescu
2009-09-17 6:25 ` bug#4287: marked as done (reducing emacs size by more frequent garbage-collect calls in loadup.el) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908291841.n7TIfw4E003762@godzilla.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=4287@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.