From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30731: Slower startup using March (27.0.50) build in windows Date: Sun, 11 Mar 2018 13:39:11 -0400 Message-ID: <87efkqzf40.fsf@gmail.com> References: <87a7vi1151.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520789891 22061 195.159.176.226 (11 Mar 2018 17:38:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 17:38:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30731@debbugs.gnu.org To: Shuguang Sun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 11 18:38:06 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 1ev4v8-0005el-K7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 18:38:06 +0100 Original-Received: from localhost ([::1]:55105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev4xB-0007I0-Ca for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 13:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev4x5-0007FQ-Ip for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 13:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ev4x1-0000nF-Ld for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 13:40:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ev4x1-0000mw-Hp for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 13:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ev4wz-0007mT-M0 for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 13:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Mar 2018 17:40: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.152078996429846 (code B ref 30731); Sun, 11 Mar 2018 17:40:01 +0000 Original-Received: (at 30731) by debbugs.gnu.org; 11 Mar 2018 17:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:55635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ev4wO-0007lK-AP for submit@debbugs.gnu.org; Sun, 11 Mar 2018 13:39:24 -0400 Original-Received: from mail-it0-f51.google.com ([209.85.214.51]:39748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ev4wK-0007l1-AD for 30731@debbugs.gnu.org; Sun, 11 Mar 2018 13:39:20 -0400 Original-Received: by mail-it0-f51.google.com with SMTP id l187-v6so8536698ith.4 for <30731@debbugs.gnu.org>; Sun, 11 Mar 2018 10:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=sS6S+mRi8Ws/Xj93P6/48ADbTo6S7lmcpfrSghWVf64=; b=gE//9Z2r2Grzlb7GoG+7lxSNlwoGMGKYf9AfTMvXQlZxDv3Xhar9gzgZmvPeqbtany cb3bwNZ9/MaYeD+CwBr6lC2T/ZrD479x6BRhMVIfFK0FsnPwqkUDmsqDmhLspgbwSEm3 rf+q20JCUIUw36fszALncY5QFtOdandGNGO/Jl4V7kF8xot5RHh7LOUqmGy9/+cPm6wr MYu2zooS6FTegzLYFSt5hsGIvoR209KrNrtfNPV8JZAie8lSipPwekXk3cpu9cG8jwff vcVHLE6evIz6nJrcdmQGR0qZtPZ95Hf91sQyWMb1+iWM44gQsvNAOCOknPYRctGRSenk w+iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=sS6S+mRi8Ws/Xj93P6/48ADbTo6S7lmcpfrSghWVf64=; b=FAuet0Rq5AL1wzRSf7J9Ejpr+dqXOxU+yeUPlIDt4sJRNH5p5Heoe79eUXchthgsGv 3A4gFmEwAR38tGP2BLE5yek7G2ywNr/ppLW73RoDIbHUaIqFUUrDJiexjY2lBDpL9JBj H25rruLrXRasesXvvLH/2OVG3cpyWCb6glCFPrFPUIsBveibMOSP8XwRtmRp/3yfpMmv rOUb10iMpwafvDi3t7EZylaOWB8UQTDOaCC2Qhppc2fukZ6exEJsg9SfViYZc2yxw2LB IPZWklzVOSiM2A/xCrYIcPAXUVVYNTBxz/qKfRPtmddL3n27bCEkm64i1cpUXvs+oH9z G0eQ== X-Gm-Message-State: AElRT7Hmygted043S/G3HrlSsOaTDno+PrfihVKBO21c5Y7Z41dkFeCf 9WQ2oCbdV/f1wGn9uhwrvGEhsg== X-Google-Smtp-Source: AG47ELvlQgSQducnWCGPYvGXh2hrAXTp0hcr/1F7h2SB3rDTvSJfDRXfi5pgM/Wau2B5SBFLwN16gQ== X-Received: by 10.36.58.149 with SMTP id m143mr5751036itm.128.1520789954717; Sun, 11 Mar 2018 10:39:14 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q21sm2125980itb.2.2018.03.11.10.39.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 10:39:14 -0700 (PDT) In-Reply-To: (Shuguang Sun's message of "Mon, 12 Mar 2018 01:21:50 +0800") 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:144132 Archived-At: 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=C2=A0 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)=C2=A0 <=3D 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').