all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: merlyn@stonehenge.com, eliz@gnu.org,
	Dan Nicolaescu <dann@ics.uci.edu>,
	mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org
Subject: Re: CVS HEAD fails to build on OSX 10.4 (macterm.c broken?)
Date: Wed, 05 Sep 2007 10:27:00 -0400	[thread overview]
Message-ID: <jwvsl5t2o7n.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1ISoC8-0006Ho-8L@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 05 Sep 2007 02\:16\:56 -0400")

>     So what is the problem with having *-win loaded by default?
> It isn't really a problem, it just wastes space by making Emacs bigger.
> The tradeoff is that loading it when needed takes time.

> I don't insist on changing it, but did anyone think about the question
> in these terms?

I must say I'm not sure why we do preloading (and dumping), so it's a more
general question.  In my view, there are two main reasons to preload:
1 - startup speed: I think this is clear enough to everybody.
2 - heap size: a bit less obvious; a preloaded package puts some of its
    information (mostly the bytecode) in the `pure' storage which is not
    garbage collected (and is generally slightly more compact, tho this is
    negligible), so the GC'd heap is slightly smaller than if the package
    had been loaded after dumping.
3 - page sharing between processes: the purespace can be shared (by the OS)
    between several Emacs instances.  This is probably a rather rare situation
    nowadays, and the difference is likely to be negligible.
4 - resilience: if the `emacs' binary finds itself all alone (somehow all
    the other .elc files are unreadable/lost), an Emacs with preloaded
    packages is more likely to still be somewhat usable.

Numbers 1,2,3 improve incrementally with each added preloaded package, as
long as that package is almost always used.  For any given package, the
impact is likely to be minor, so measuring the impact of preloading a single
package is likely to be futile (and very difficult because the impact will
be lost in the noise).

Number 4 improves less incrementally.  Emacs may become fully unusable if
some packages can't be found and are not preloaded.  So number 4 seems to
indicate that a package should be preloaded if in some circumstances the
binary may become unusable in the case where the .elc files cannot be found.


        Stefan

  reply	other threads:[~2007-09-05 14:27 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 15:14 CVS HEAD fails to build on OSX 10.4 (macterm.c broken?) Randal L. Schwartz
2007-08-29 15:31 ` Dan Nicolaescu
2007-08-29 15:42   ` Randal L. Schwartz
2007-08-29 15:45     ` Randal L. Schwartz
2007-08-29 16:04       ` Dan Nicolaescu
2007-08-29 16:08         ` Randal L. Schwartz
2007-08-29 16:28           ` Dan Nicolaescu
2007-08-30  0:33             ` YAMAMOTO Mitsuharu
2007-08-30  0:47               ` Dan Nicolaescu
2007-08-30  1:06                 ` YAMAMOTO Mitsuharu
2007-08-30  1:21                   ` Dan Nicolaescu
2007-08-30  1:34                     ` YAMAMOTO Mitsuharu
2007-08-30  1:42                       ` Dan Nicolaescu
2007-08-30  1:52                         ` YAMAMOTO Mitsuharu
2007-08-30  3:10                           ` Dan Nicolaescu
2007-08-30 20:50               ` Richard Stallman
2007-08-30 23:59                 ` YAMAMOTO Mitsuharu
2007-08-31 18:21                   ` Richard Stallman
2007-08-31 23:50                     ` YAMAMOTO Mitsuharu
2007-09-01  2:06                       ` Stefan Monnier
2007-09-01  8:13                         ` Eli Zaretskii
2007-09-02 15:50                           ` Richard Stallman
2007-09-03 20:43                           ` Stefan Monnier
2007-09-04  3:06                             ` Eli Zaretskii
2007-09-04 16:45                             ` Richard Stallman
2007-09-04 21:29                               ` Dan Nicolaescu
2007-09-05  0:16                                 ` YAMAMOTO Mitsuharu
2007-09-05  6:16                                 ` Richard Stallman
2007-09-05 14:27                                   ` Stefan Monnier [this message]
2007-09-06  4:59                                     ` Richard Stallman
2007-08-31 18:21                   ` Richard Stallman
2007-08-29 16:30           ` Randal L. Schwartz
2007-08-29 16:41             ` Dan Nicolaescu
2007-08-29 16:45               ` Randal L. Schwartz
2007-08-29 16:59                 ` Dan Nicolaescu
2007-08-29 17:09                 ` chad brown
2007-08-29 17:18                 ` chad brown
2007-08-29 17:49                   ` Dan Nicolaescu
2007-08-29 20:14                     ` chad brown
2007-08-29 22:05                       ` Glenn Morris
2007-08-29 22:40                         ` Dan Nicolaescu
2007-08-30  3:23                           ` chad brown
2007-08-31  0:08               ` YAMAMOTO Mitsuharu
2007-08-31  0:53                 ` Randal L. Schwartz
2007-08-31  1:03                   ` YAMAMOTO Mitsuharu
2007-08-31  1:06                     ` YAMAMOTO Mitsuharu
2007-08-31  8:12                 ` Dan Nicolaescu
2007-08-31 10:04                   ` YAMAMOTO Mitsuharu
2007-09-03 14:23                   ` Randal L. Schwartz
2007-09-03 14:49                     ` Jason Rumney
2007-09-04  1:01                       ` YAMAMOTO Mitsuharu
2007-09-04  6:47                         ` Yavor Doganov
2007-09-04  7:54                           ` YAMAMOTO Mitsuharu
2007-09-04 22:58                             ` Richard Stallman
2007-09-05  0:24                               ` YAMAMOTO Mitsuharu
2007-09-05 20:02                                 ` Richard Stallman
2007-09-05 23:58                                   ` YAMAMOTO Mitsuharu
2007-09-06  5:53                                     ` Yavor Doganov
2007-09-06  8:28                                       ` YAMAMOTO Mitsuharu
2007-09-06  9:17                                         ` Yavor Doganov
2007-09-06 10:23                                           ` YAMAMOTO Mitsuharu
2007-09-07  6:31                                             ` Richard Stallman
2007-09-07  7:02                                               ` YAMAMOTO Mitsuharu
2007-09-08  7:00                                                 ` Richard Stallman
2007-09-07  6:30                                     ` Richard Stallman
2007-09-03 14:55                     ` dhruva
2007-09-03 15:16                       ` Jason Rumney
2007-09-04  0:57                       ` Richard Stallman
2007-09-04  6:07                         ` David Kastrup
2007-09-04 22:57                           ` Richard Stallman
2007-09-04  0:57                     ` Richard Stallman

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=jwvsl5t2o7n.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dann@ics.uci.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=merlyn@stonehenge.com \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    --cc=rms@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.