From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: bug#30854: 27.0.50; Speeding up package.el startup Date: Tue, 22 Dec 2020 21:45:04 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 22 21:46:46 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kroYQ-0001vO-Fd for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 21:46:46 +0100 Original-Received: from localhost ([::1]:33366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kroYP-0006oq-BL for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 15:46:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kroWs-0005qX-Bi for emacs-devel@gnu.org; Tue, 22 Dec 2020 15:45:10 -0500 Original-Received: from mail-db8eur05olkn2090.outbound.protection.outlook.com ([40.92.89.90]:64352 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kroWq-0005Q9-CW for emacs-devel@gnu.org; Tue, 22 Dec 2020 15:45:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWn4vfGrMCa8pirc5sUsCbEVKkJYh4tHSZGtsyB2YJh9e0BrNLvaEfQqQbDYBxlwTI0svbecLx79pJ+R3LBvTXyTeZXd2wr9ypfOkDFQfsuBdsYNpGpzA9DPr2xcEa57FpqbALo1WN4e2B1ezP8uMAh28KpXqfAuNeGNw+cxmbpqM6WqK9ynlw6v4IhN8QSV8kS20IVjTEUghAg6hQRSnOKfin9wP8s9ZfQ2vc8kgsQYbtYeBmyQVcXcE0isgNUknLy2pwa1G5UgQpGYDI8YUb3jl+uhvZG8iz2T5NYlxjnh2BK95ndR15rzZ/34tpZKpoxtWANRgjQhKtrnkmzcsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FZvxQKsuKzd1cwlNDd0x8YoEwpdiExsq/aTvOTsNwV8=; b=nrFgTJJ6li8GqPQlZ0NQc4e2ADFy2sqgOH8Lu1HMh0uxkxggz+Nv7vtxSJNnuIuqLjUpCb+1ofH5zzcN0hVC6EusneGbYOG1p0CAJK3hAKcF6z+XWXTcaavbWaCc75dMeaJmL5DMg5ZsyXxDIzXeJynheQfETsQKP8S1Urkrfhg5pIzMEp7XD/58LRWV7nzXKx6ydQgg81z1Rq9Y0PU4MIwS+9htiokiCfvFGPc4palDcIzLExG4bWdb6+w96FgQ26IidLXX11lwue1qKXhXDyxURCZAiV8eAIT7mitCl3YjsQtS5VTpcujrmRuaWi+J8aAFIYZorObNq7FOEgMGig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FZvxQKsuKzd1cwlNDd0x8YoEwpdiExsq/aTvOTsNwV8=; b=kTGPjGIrJ6VGc5igWhq3CW3WiPOYyRiyFSpXVVVlVUOCRrn3T8UYaS/JmHs7/ti3+F9FxPJwN6csIedqbNBGDsU6R35W5m+I6hv8qFOnoQJvCrikjaQA4Rs2ooZowCuWhHvkWWUlu8dMVkhBC9vS0wr8FeeUbMOjPeOwnykqieh+nK3PJontKpBbVB5ieQDib+wg70W/f8TtG2Icb9oanqDbASK6R8xh55GhvLCKJJVghhjpKhOrBvhsIqHd1ZG/vrLzS4sO1P/vXVK12Z3HGC0vl9DhasBTFr2Jxvxt0Rkde5k5sGBKrjXP2raH+XXyElMEN/C87Wndvbu8K1etBw== Original-Received: from DB8EUR05FT048.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::44) by DB8EUR05HT090.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::427) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22; Tue, 22 Dec 2020 20:45:06 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc0f::49) by DB8EUR05FT048.mail.protection.outlook.com (2a01:111:e400:fc0f::88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Tue, 22 Dec 2020 20:45:06 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:5C5FE4DDFF8EAFA24418E9FCCC89E41366B4830F2EFEB9D500174039C0B2960D; UpperCasedChecksum:F5482AD99BC264F02D5341867CD7826CAEB2E91DE23EA20B975A36AB88515F75; SizeAsReceived:8799; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%8]) with mapi id 15.20.3676.033; Tue, 22 Dec 2020 20:45:05 +0000 In-Reply-To: (Stefan Monnier's message of "Tue, 22 Dec 2020 14:44:38 -0500") X-TMN: [XwM8LSqDrMVgrsndGf9uaadZHxmPVeGg] X-ClientProxiedBy: AS8PR04CA0212.eurprd04.prod.outlook.com (2603:10a6:20b:2f2::7) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87v9cta7u7.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AS8PR04CA0212.eurprd04.prod.outlook.com (2603:10a6:20b:2f2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Tue, 22 Dec 2020 20:45:05 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: db1fdfa6-fab7-485e-1194-08d8a6ba76b6 X-MS-TrafficTypeDiagnostic: DB8EUR05HT090: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 38qf781V8ViPoOQo1nAjLRN23yKZNviGpKDrI/j5TZPl/qypnPG1bOrWvAX4+CcEPErrVGLgsoX0IT4LBZCcoSBM4MJHrQRaZikTaD/QrT8jixTQQIGaZH3TP1/Ap67M0n5qPhd/uhGpzA8pMYdpKRIkUpW2x37UphNXZowdF+gWVatI7xDbQp8JOJLNIo5dR4TDs0UuKhyGYOhxXO4gMEeZZb82GwwoH5oCrJ1nGROLwVgLrervxIqoxAqo6JCi X-MS-Exchange-AntiSpam-MessageData: JJxlZ6q2OI3LO1uliM7U1hu+ZRWdeR6t7onZ+M0YxwADO8N8GgKEjqid6IvviIM9HFzgHoZMxDbrBF1L5glsRcvXjyTYx2ljL37i/eAo43Qsk1kzcqqThZQ19RRI/6SfGWa5vXxU8xn1Xgoqt1z+xw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2020 20:45:05.8308 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-Network-Message-Id: db1fdfa6-fab7-485e-1194-08d8a6ba76b6 X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT048.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT090 Received-SPF: pass client-ip=40.92.89.90; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261540 Archived-At: Stefan Monnier writes: >>> Set `package-load-list`. >> Is it up to user to serialize this list to disk for next session or >> is it somehow done on the user behalf? > > It's assumed it's manually set in the user's init file or via Custom, yes. > > For example, I locally disable AUCTeX as follows: > > (setq package-load-list '((auctex nil) all)) > >> If user disabled a package, and generated new autoloads, and then >> there were new packages installed in site repository, how would Emacs >> know which are disabled and which are just new ones? > > If `package-load-list` says it's disabled, then it's disabled, and if > not, then it's not. I guess I don't understand the question. > >> 1. is probably trivial, since package.el already can do that. It >> just needs to call package-quickstart-refresh from few more places. > > Right. > >> 2. as well > > Indeed. > >> 3. will need some extra code, mostly or only in startup.el > > It also needs extra code in `package.el` when creating > `package-quickstart.el` to record the mtimes. > > BTW, other cases where the `package-quickstart.el` needs to be recreated > is when the user changes `package-load-list` or > `package-directory-list`, so we may also want to remember the values of > those vars when creating the `package-quickstart.el`. But this part is > more tricky: it can be perfectly normal for the users to set those vars > in their init file, i.e. after `package-quickstart.el` is loaded (it's > actually one of the benefits of using `package-quickstart.el`: you don't > need to set `package.el`'s vars in your `early-init.el`), so we should > not check those vars for freshness before loading > `package-quickstart.el` but rather later. > >> 4. will need some extra code in package.el, maybe in startup.el too, not sure > > AFAIK there's nothing to be done for 4. I think I like 4. best so far.