From: Noam Postavsky <npostavs@gmail.com>
To: Shuguang Sun <shuguang@gmail.com>
Cc: 30731@debbugs.gnu.org
Subject: bug#30731: Slower startup using March (27.0.50) build in windows
Date: Sun, 11 Mar 2018 13:39:11 -0400 [thread overview]
Message-ID: <87efkqzf40.fsf@gmail.com> (raw)
In-Reply-To: <CACspjXd1ZiwW9T_roOF6Z-fZPAhfvL0qVBXSUqe95vu=b4p7eQ@mail.gmail.com> (Shuguang Sun's message of "Mon, 12 Mar 2018 01:21:50 +0800")
Shuguang Sun <shuguang@gmail.com> writes:
> I read the disussions and patches, and I find out the 3.692 sec at
> the beigining seems package initialization (according to the patch in
> Feb 17).
> However, I still don't get
> 1. What is an early init file?
It should be explained in `(emacs) Early Init File' and `(elisp) Init
File'.
> 2. Why custom-set-variable get slower?
Not sure, we need to see some more detail to find out. Can you figure
out if it's all variables getting slower, or is there some specific
variable setting that causes the slowdown?
> 3. If i want to disable package initialization prior to any thin in
> the .emacs, but after custom-set-variable and some environment
> variables setting (e.g. PATH, exec-path), how to do it?
>
> Could you help provide an example using my situation?
> 1) I use a Windows 7 box, and have HOME env variables, and .emacs.d
> folder under it
> 2) I have a site-start.el for environment variables setting (e.g.
> PATH, exec-path) <= I thinks this it not critical because it has no
> speed effect after I delete the site-start.el
> 3) I have .emacs under HOME, and compile it to .emacs.elc to speed it
> up
> 4) I load dired.el and then custom-set-variable, then some frame
> settings , then initialize package using
> (setq package-enable-at-startup nil)
> (package-initialize)
The package-enable-at-startup setting should be moved to
~/.emacs.d/early-init.el.
Possibly also the settings in site-start.el (since the early-init.el
runs before site-start.el, as described in `(elisp) Startup Summary').
next prev parent reply other threads:[~2018-03-11 17:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-06 16:20 bug#30731: Slower startup using March (27.0.50) build in windows Shuguang Sun
2018-03-09 1:35 ` Noam Postavsky
2018-03-11 3:25 ` Shuguang Sun
2018-03-11 17:21 ` Shuguang Sun
2018-03-11 17:39 ` Noam Postavsky [this message]
2018-03-12 1:48 ` Shuguang Sun
2018-03-12 1:52 ` Noam Postavsky
2018-03-12 16:08 ` Shuguang Sun
2018-03-12 17:09 ` Noam Postavsky
2018-03-13 10:34 ` Shuguang Sun
2018-03-14 1:38 ` Noam Postavsky
2018-03-14 5:02 ` Shuguang Sun
2018-03-19 23:41 ` Noam Postavsky
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=87efkqzf40.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=30731@debbugs.gnu.org \
--cc=shuguang@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 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.