From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Loading a package applies automatically to future sessions? Date: Mon, 29 Jan 2018 11:55:55 -0800 Message-ID: References: <76b1fb81-54c0-c213-a542-dc7b9838c473@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517255703 23097 195.159.176.226 (29 Jan 2018 19:55:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2018 19:55:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin) Cc: Radon Rosborough , George Plymale II , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 29 20:54:58 2018 Return-path: Envelope-to: ged-emacs-devel@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 1egFVv-00055C-ND for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2018 20:54:47 +0100 Original-Received: from localhost ([::1]:34460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egFXw-000894-KB for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2018 14:56:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egFXD-00088Q-IM for emacs-devel@gnu.org; Mon, 29 Jan 2018 14:56:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egFXC-0002YM-Ix for emacs-devel@gnu.org; Mon, 29 Jan 2018 14:56:07 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egFX6-0002TL-Qh; Mon, 29 Jan 2018 14:56:00 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:56707) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1egFX6-0003he-JE; Mon, 29 Jan 2018 14:56:00 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id A4CB220D61; Mon, 29 Jan 2018 14:55:59 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Mon, 29 Jan 2018 14:55:59 -0500 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id 409CB240B6; Mon, 29 Jan 2018 14:55:59 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Mon, 29 Jan 2018 14:08:49 -0500") Mail-Followup-To: Stefan Monnier , Radon Rosborough , George Plymale II , emacs-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222301 Archived-At: >>>>> "SM" == Stefan Monnier writes: SM> I don't think I can easily bring down the speed of package-initialize much SM> below 0.1s for my 200 packages on my Thinkpad T61. Whether that would SM> still let you startup in 0.4s with your config, I can't tell. SM> There's no doubt that with use-package you have a finer control about what SM> happens when, so you can delay some of the things done during SM> package-initialize, but without looking more deeply into it, it's hard to SM> tell whether that would really be needed. True. Note that I did shave an entire second from my startup time just by adding: (setq package-enable-at-startup nil) I determined this was slowing things down considerably (at least, in my environment) by running profiler-start as the very first thing in my init file. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2