From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Loading a package applies automatically to future sessions? Date: Tue, 30 Jan 2018 10:11:58 -0500 Message-ID: References: <76b1fb81-54c0-c213-a542-dc7b9838c473@gmail.com> <66242658-f67d-aada-b844-d2c55848cb81@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517325069 9233 195.159.176.226 (30 Jan 2018 15:11:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2018 15:11:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 30 16:11:05 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 1egXYc-0000y3-T0 for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2018 16:10:47 +0100 Original-Received: from localhost ([::1]:42607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egXad-00080k-TB for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2018 10:12:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egXaW-0007zd-2n for emacs-devel@gnu.org; Tue, 30 Jan 2018 10:12:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egXaQ-000343-A5 for emacs-devel@gnu.org; Tue, 30 Jan 2018 10:12:44 -0500 Original-Received: from [195.159.176.226] (port=39723 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egXaQ-00033U-2w for emacs-devel@gnu.org; Tue, 30 Jan 2018 10:12:38 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1egXY5-0007TC-2C for emacs-devel@gnu.org; Tue, 30 Jan 2018 16:10:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:0PQd6JZ3eTabBIoODzeDYhoPzsQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:222313 Archived-At: >> I don't think I can easily bring down the speed of package-initialize >> much below 0.1s for my 200 packages on my Thinkpad T61. > FWIW, activating about 100 packages in my config takes about .4s: That's consistent with my 0.9s for 200 packages (tho not with John's 1s for almost 400 packages), but it of course depends a lot on the details of your machine (e.g. mine is almost 10 years old, John's is only 3). > It looks likes package--add-to-archive-contents is linear in the > number of packages, and called once per package? I'm not sure why > file-truename is called that much. Note that my attempt to bring it down to 0.1s circumvents all that code (or rather, pre-runs it offline to generate a single "mega-autoloads" file, so that activation of all packages reduces to loading that one file). Stefan