From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#30731: Slower startup using March (27.0.50) build in windows Date: Mon, 12 Mar 2018 09:48:15 +0800 Message-ID: References: <87a7vi1151.fsf@gmail.com> <87efkqzf40.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11453bcceb76ba05672d55b2" X-Trace: blaine.gmane.org 1520819235 8589 195.159.176.226 (12 Mar 2018 01:47:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2018 01:47:15 +0000 (UTC) Cc: 30731@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 02:47:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evCYM-00022i-85 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 02:47:06 +0100 Original-Received: from localhost ([::1]:56250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evCaP-0002TQ-8j for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 21:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evCaH-0002TF-Ei for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 21:49:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evCaE-0001t3-BS for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 21:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evCaE-0001sX-6f for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 21:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evCaD-0007cl-PM for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 21:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2018 01:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30731-submit@debbugs.gnu.org id=B30731.152081930629258 (code B ref 30731); Mon, 12 Mar 2018 01:49:01 +0000 Original-Received: (at 30731) by debbugs.gnu.org; 12 Mar 2018 01:48:26 +0000 Original-Received: from localhost ([127.0.0.1]:55895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evCZb-0007bn-Jv for submit@debbugs.gnu.org; Sun, 11 Mar 2018 21:48:26 -0400 Original-Received: from mail-qt0-f181.google.com ([209.85.216.181]:41898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evCZZ-0007bZ-Kj for 30731@debbugs.gnu.org; Sun, 11 Mar 2018 21:48:22 -0400 Original-Received: by mail-qt0-f181.google.com with SMTP id j4so17220616qth.8 for <30731@debbugs.gnu.org>; Sun, 11 Mar 2018 18:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sWjMIFpSV0JMk5LcXt14v9hFPh8EufEJ2g/LQC6GrJI=; b=rOqEhdwl6wcAOisLYVDKCtuCMkmg47G4j1oqAJX5YObqeNlfZTIueFNtBBGpB/grn4 aTfdKpou3j7N4tcfU3Z99qWJaedTtE9QtzTXbC2PdFA8JnotJtJnHWOZVyUWmZ6Ial2R usFjsnTcBBrbd54I51xHkW6MtIma9BdMXpp6tbrMDbPuvS2g67UK1UV/IkL82fHm7m00 RylIGSlgHr92QpTwYnFek8o1RhryYQ9NUQeJOpBh8054tTOvUnlZYrine+E9E2KCmOnn 05cXqe65PGlWoGAOQYcaLFN72Tie0xMeWMbJSEqezy76aplFQEMGMmaNXzElnRU4rZp6 REIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sWjMIFpSV0JMk5LcXt14v9hFPh8EufEJ2g/LQC6GrJI=; b=EVXKYxPcL4ZVc/flaiE/vf1uptE/BIZptpzNZXHUe2B5FtZmCHcPaqAuw3tYqF0nZ2 Osh7zNGGOzLqW22z22vOefS4d9GIUd5Grc76UGLe3VcriEYulNiVU2DNBrV3m5qK0ZiA SFEU2ZS/gcyMRHEuEqwi3Z+Mec+Opz/Bpo8L4TLNLgrQL6mPsiCOkpp2h0TuvcH7f3UT n6vBwPcAdC27DPPk0o+PfiYwVc6aSCwTyWFGXd9Co/u5TdeW98b3doG6A5sgbRcfTr9L xj3EPHvpZu1x1qMpW3PdF2ClM0oMuyJ5HkYCso4RL4NudKUyHMXy4cUhcCibAmKJ1+cq 0o1g== X-Gm-Message-State: AElRT7GS6BRzyEtwb2+o3McHxXKrh2qaQf7EqZhELCMzNqvBZRebaGyt DNMi8KcyQe6ewYufYT1UAw4ZThlrIhM6NOnA7VA= X-Google-Smtp-Source: AG47ELuusSzJ1UISW2MdfjqYiP3uT3CQGlbRbnF/uiCSN4OcqUZoZBebUJW9DMDz1oaCcyqFiwpMPWzplAMnSkR+q2s= X-Received: by 10.200.51.193 with SMTP id d1mr6905598qtb.338.1520819296235; Sun, 11 Mar 2018 18:48:16 -0700 (PDT) Original-Received: by 10.237.47.196 with HTTP; Sun, 11 Mar 2018 18:48:15 -0700 (PDT) In-Reply-To: <87efkqzf40.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144143 Archived-At: --001a11453bcceb76ba05672d55b2 Content-Type: text/plain; charset="UTF-8" Hi Noam, Thank you for your patient explaination. I put the (setq package-enable-at-startup nil) in the early-init.el and the load time of .emacs is the same to the emacs Feb version. On Mon, Mar 12, 2018 at 1:39 AM, Noam Postavsky wrote: > Shuguang Sun 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'). > > --001a11453bcceb76ba05672d55b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Noam,

Thank you for your = patient explaination. I put the (setq package-enable-at-startup nil) in the= early-init.el and the load time of .emacs is the same to the emacs Feb ver= sion.

O= n Mon, Mar 12, 2018 at 1:39 AM, Noam Postavsky <npostavs@gmail.com>= ; wrote:
Shuguang= Sun <shuguang@gmail.com> w= rites:

> 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<= br> > 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=C2=A0 get slower?

Not sure, we need to see some more detail to find out.=C2=A0 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)=C2=A0 <=3D I thinks this it not critical because i= t 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<= br> > 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').<= br>

--001a11453bcceb76ba05672d55b2--