From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Saving more than 1MB when installed
Date: Fri, 25 May 2012 21:10:38 -0400 [thread overview]
Message-ID: <jwvk3zzah3j.fsf-monnier+emacs@gnu.org> (raw)
Try the patch below. In my tests, adding the pre-loaded elc files in
DOC results in a much larger DOC file (2.4MB vs 650KB), but doesn't save
us anything in the `emacs' executable (neither pure space, nor live heap
or executable size).
I propose we get rid of this "optimization", which is brittle anyway (it
relies on lib-src/make-docfile finding all the docstrings and matching
defvar/defuns in the .elc file, which can be pretty difficult).
Any objection?
Stefan
=== modified file 'src/Makefile.in'
--- src/Makefile.in 2012-05-22 16:20:27 +0000
+++ src/Makefile.in 2012-05-26 00:56:02 +0000
@@ -424,7 +424,7 @@
$(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
-rm -f $(etc)/DOC
$(libsrc)/make-docfile -d $(srcdir) $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
- $(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) `sed -n -e 's| \\\\||' -e 's|^[ ]*$$(lispsource)/||p' $(srcdir)/lisp.mk`
+ #$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) `sed -n -e 's| \\\\||' -e 's|^[ ]*$$(lispsource)/||p' $(srcdir)/lisp.mk`
$(libsrc)/make-docfile$(EXEEXT):
cd $(libsrc); $(MAKE) $(MFLAGS) make-docfile$(EXEEXT)
=== modified file 'src/lread.c'
--- src/lread.c 2012-05-25 18:06:13 +0000
+++ src/lread.c 2012-05-26 00:59:20 +0000
@@ -3548,7 +3548,7 @@
if (ch == ')')
{
if (doc_reference == 1)
- return make_number (0);
+ /* return make_number (0) */;
if (doc_reference == 2)
{
/* Get a doc string from the file we are loading.
next reply other threads:[~2012-05-26 1:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-26 1:10 Stefan Monnier [this message]
2012-06-02 19:50 ` Saving more than 1MB when installed Stefan Monnier
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=jwvk3zzah3j.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.