From: David <de_bb@arcor.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to Reduce Emacs Load Time
Date: Sun, 31 Aug 2008 13:39:32 +0200 [thread overview]
Message-ID: <87ej45mn0r.fsf@arcor.de> (raw)
In-Reply-To: 18aba2b0-4fc7-4588-b69f-d9f46b264b03@q26g2000prq.googlegroups.com
formido <formido@gmail.com> writes:
> Emacs takes like 10 seconds to load. It's a lot faster if I don't load
> all my packages. What strategies could I use to get my load time down?
First, you should identify what parts of your .emacs take so long. You
can do this e.g. by starting emacs with "emacs -q", set up your
load-path, and then evaluate
(benchmark-run
(require 'package))
The first number appearing in the echo area will be the time needed to
run that command.
> Emacs itself is made up of tons of elisp files and it doesn't take
> forever to load, so I don't see why I should be forced to endure long
> load times just because I add third party packages.
Many packages from Emacs use autoloads, which delay the loading of the
complete package until one of the interactive functions is used.
> If I do, 'require package', I'm at the mercy of the package maker's
> initialization process, right?
Essentially, yes. But maybe you "require" too much. My emacs startup
time is ~1sec, although I include large third party packages like CEDET
and Gnus. For example, for setting up Gnus, you should only require
'gnus-load in your .emacs, which contains the proper autoloads. This
takes about 0.03 seconds on my machine.
If you want to set options which need to be evaluated after a package is
loaded, you can use eval-after-load.
-David
next prev parent reply other threads:[~2008-08-31 11:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 21:11 How to Reduce Emacs Load Time formido
2008-08-30 22:00 ` Pascal J. Bourguignon
2008-08-31 11:26 ` Nikolaj Schumacher
[not found] ` <mailman.18041.1220182012.18990.help-gnu-emacs@gnu.org>
2008-08-31 17:39 ` formido
2008-08-31 22:24 ` Nikolaj Schumacher
2008-08-31 17:50 ` formido
2008-09-08 12:38 ` Eric Ludlam
2008-08-30 22:05 ` Pascal J. Bourguignon
2008-08-30 22:03 ` formido
2008-08-31 11:59 ` Joost Diepenmaat
2008-08-31 9:39 ` Ivan Kanis
2008-08-31 12:35 ` Nikolaj Schumacher
[not found] ` <mailman.18043.1220186144.18990.help-gnu-emacs@gnu.org>
2008-08-31 20:01 ` Chetan
2008-08-31 11:39 ` David [this message]
[not found] ` <mailman.18042.1220182790.18990.help-gnu-emacs@gnu.org>
2008-08-31 17:42 ` formido
2008-08-31 19:10 ` David
2008-08-31 22:10 ` Nikolaj Schumacher
2008-08-31 22:20 ` David
[not found] ` <mailman.18077.1220220611.18990.help-gnu-emacs@gnu.org>
2008-08-31 22:36 ` formido
2008-09-02 18:04 ` Ken Goldman
2008-09-03 13:06 ` rustom
2008-09-03 17:06 ` Rupert Swarbrick
2008-09-04 11:01 ` rustom
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=87ej45mn0r.fsf@arcor.de \
--to=de_bb@arcor.de \
--cc=help-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.