unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: Chong Yidong <cyd@stupidchicken.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: user-init-file source vs. compiled
Date: Fri, 02 Feb 2007 10:30:02 -0500	[thread overview]
Message-ID: <jwvk5z060u7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f7ccd24b0702011503j31332b34j333c622ab9873959@mail.gmail.com> (Juanma Barranquero's message of "Fri\, 2 Feb 2007 00\:03\:23 +0100")

>> I clearly disagree.  If there's no loop in your .emacs, then byte-compiling
>> won't bring you any benefit.
> It's not about the code being faster, is about the .elc being smaller
> (about 10% smaller) than the .el.

10% smaller will result in a non-measurably faster load, and will still take
90% more disk space.  So what's the advantage again?

>> then you should most likely take those things out of your .emacs and move
>> them to a separate file/package.

> Why? You prefer it that way, OK, do that. I don't like having lots of
> small .el files loaded from .emacs; it's easier to maintain it
> up-to-date between two or more computers when it's a single file.

I don't want to make it impossible to byte-compile your .emacs.  If that's
really what you want, go for it.  I'm just saying that we should discourage
people from doing that, because too many users think "oh Emacs takes a long
time to start, I bet if I byte-compile it it'll start faster", but it turns
out it's not faster and next time they forget to re-compile their .emacs
they get bitten.  It's not the most common problem on gnu.emacs.help, but
it's sufficiently common that I think the potential very minor advantage(s)
is just not worth it.

OTOH I'm in favor of adding some kind of hack so that the .emacs file
automatically goes through the byte-compiler's sanity checks when you save
it (so they user might can warnings about using obsolete
variables/functions).


        Stefan

  reply	other threads:[~2007-02-02 15:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 15:10 user-init-file source vs. compiled Juanma Barranquero
2007-02-01 15:46 ` Lennart Borgman (gmail)
2007-02-01 16:07   ` Juanma Barranquero
2007-02-01 16:21     ` Lennart Borgman (gmail)
2007-02-01 17:04       ` Juanma Barranquero
2007-02-01 17:20         ` Lennart Borgman (gmail)
2007-02-01 18:18           ` Juanma Barranquero
2007-02-01 19:17 ` Stefan Monnier
2007-02-01 20:02   ` Chong Yidong
2007-02-01 22:41     ` Stefan Monnier
2007-02-01 23:03       ` Juanma Barranquero
2007-02-02 15:30         ` Stefan Monnier [this message]
2007-02-02 16:03           ` Juanma Barranquero
2007-02-02 16:30             ` Lennart Borgman (gmail)
2007-02-02 16:38               ` Juanma Barranquero
2007-02-02 17:15                 ` Lennart Borgman (gmail)
2007-02-02 17:21                   ` Juanma Barranquero
2007-02-02 16:47             ` Stefan Monnier
2007-02-02 17:08               ` Juanma Barranquero
2007-02-01 20:07   ` Juanma Barranquero
2007-02-01 20:50 ` Eli Zaretskii
2007-02-01 22:06   ` Juanma Barranquero

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk5z060u7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).