From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs startup is suddenly slow
Date: Sun, 02 Oct 2022 23:06:15 -0400 [thread overview]
Message-ID: <jwvwn9hd35w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: ff7a84e1-be07-1ffb-aeae-54d7cf26aca5@gmail.com
> Of course,emacs -q starts in under 2secs ; Here is the log:
>
> Loading /etc/emacs/site-start.d/00debian.el (source)...done
> Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
> Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
> Loading debian-ispell...
> Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
> (source)...done
> Loading debian-ispell...done
> Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
> (source)...done
> Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
> For information about GNU Emacs and the GNU system, type C-h C-a.
`emacs -q` loads the site-specific files but not your personal config,
so the above is all the site-specific things. And it seems they're
fast enough.
> So I figured that those loading commands (image-file, display-line-numbers,
> tab-line, savehist and paren, that all look important) were site-specific,
> and tried
No, the contrary`
> emacs --no-site-file
>
> But they seem to still be here, and still are quite blocking:
>
> Here is the log:
>
> Loading image-file...done
> Loading display-line-numbers...done
> Loading tab-line...done
> Loading savehist...done
> Loading paren...done
> Emacs 27.1 loaded in 12.02 seconds with 8 garbage collections.
Indeed, because these messages result from loading your own personal
config. So, presumably *you* should know where they come from :-)
[ IIRC the above messages presumably come from your init file having
explicit `load` (or `load-file`) calls to load those files, which is
a bad idea since loading a file usually doesn't "do" anything.
Instead you should just call `display-line-numbers-mode`, or
`savehist-mode`, ... and the files will be auto-loaded for you (if
needed), without emitting the above messages. ]
Also your description suggests that Emacs sits "idle" for more than 5s
between the loading of the site-specific files and your own personal
init file. So maybe the problem is in neither of those but
somewhere else instead.
Stefan
prev parent reply other threads:[~2022-10-03 3:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-03 2:47 Emacs startup is suddenly slow yPhil
2022-10-03 3:06 ` Stefan Monnier via Users list for the GNU Emacs text editor [this message]
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=jwvwn9hd35w.fsf-monnier+emacs@gnu.org \
--to=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.