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: Sun, 20 Dec 2020 23:45:57 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_AM0PR06MB65770E93869242D27903ADCC96C10AM0PR06MB6577eurp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38617"; mail-complaints-to="usenet@ciao.gmane.io" 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 Mon Dec 21 00:47:10 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 1kr8Pt-0009wb-7F for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 00:47:09 +0100 Original-Received: from localhost ([::1]:39572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr8Ps-0006sP-9v for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Dec 2020 18:47:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr8Oq-0006LV-23 for emacs-devel@gnu.org; Sun, 20 Dec 2020 18:46:04 -0500 Original-Received: from mail-vi1eur05olkn2032.outbound.protection.outlook.com ([40.92.90.32]:9696 helo=EUR05-VI1-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 1kr8On-0004mR-14 for emacs-devel@gnu.org; Sun, 20 Dec 2020 18:46:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZuawnpID2SNda5p7fUtU4bNcVSqdd+AqIRpDwdjUdJaWsCLnEtJJeUVjzZNR6BEFm7fb3LB7zPOHza9C5k9lbmmf4uYDx3+yIA+HLCsEcoeD2jy3cO6FLgT6bNs24yZtFBRa0Wl1XatN4bwKkdTaZbk3wLxgvxaqSFDr0R3AUr+62gMt0/zUqZrXYz2JVYXNV5qYfFv23bte0f8hjiZLcm455qrYN9MTORvLBw7fCVYgB36SCZOTnf3pkHbJnkdR6wUuEXRV3XsxEfar4h/q0QzxZgBxKwmwItT2TSOen10MWHbeiilLsujjIbRqXz8iHA4y5U8vu9RAUFzkmUem+Q== 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=abWMg2MeN1B3af55M+Irn0eMdaIKpyDp8tfWmHlI+sQ=; b=ZHN/C0FBzNCTOH87fWyVA9Z/BNAwpkCzF9nRhOBoAU3pR0Pluc+2aLXKi/tuPFrdTWTQuFpQtQC10Knwgw/EiWxGvnSEFlV9ge3FmbXNtfkqsTVXJpF2+favuSUqHq9TJZe346nb9OzT00hXCM5QDDG1rJ/dRibQ20Y66tM1qJ6g/O3VjKB2bDOwUNeb5sgyA2kN9kUf36HCvIpwKerDydBJsBnYIPsJfbNRfA13PNkWIa9Q5YXVe0jUQ8CjYlo+zzb9wqdHdGaGJm5aZSk4Pe99JiURvofFiwxrh+Ot6jTQ8h/mQ9qVjA7mrBN442d3CIhAxgcPE2qKVLcQgynlRA== 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=abWMg2MeN1B3af55M+Irn0eMdaIKpyDp8tfWmHlI+sQ=; b=d/1NCaYFsN8FE/HzFJO9OODa1tP6TBuNwNCouk0pTreO61xPgiHwBmPW80dltSA1dWH1O9t0dZL52QgKxYVtNZditzZjg/9AN/mLuod/0SUtfNIYNPUl7b72002gnY2Enwv1amO1xOae+7hHC12WLyXD3zmaOo7v+aVuv0aquvYc0ke/Zw5XXcsjyVrU+y5SB5jWZ4CzSpDGALkk/5q1zDh+gNzrnrX8Q3z3rkoZKZveKG6Jh0MCPNd9ni8SRESn02HFNf3oLCLdmE+Xyx5BYczwDvLijUL0i2zzZD1JecHlD3vWQMmtHA+n/oaBOBmRKok6iWv8ZV4nd79YZDjjew== Original-Received: from VI1EUR05FT041.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::49) by VI1EUR05HT129.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::360) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22; Sun, 20 Dec 2020 23:45:58 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc12::40) by VI1EUR05FT041.mail.protection.outlook.com (2a01:111:e400:fc12::350) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Sun, 20 Dec 2020 23:45:58 +0000 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; Sun, 20 Dec 2020 23:45:58 +0000 Thread-Topic: bug#30854: 27.0.50; Speeding up package.el startup Thread-Index: AQHW1SxnqPE89JIayECeIqVhjO4aLKoAPWlsgABsxXM= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:2AFC6E3436F3108F450BCA61FF6F47241147053A07FAE263AF50EE1AE13A08D3; UpperCasedChecksum:ECAF2D79F48526D9B34B542FA5C9AD3B7544A4444F407EEF8359196B5CE5D013; SizeAsReceived:7598; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ciWwmLBWYMkVsMdAs7qZm0fXrO8OShT+] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: b0ec57a6-c1e5-4988-e531-08d8a541664c x-ms-traffictypediagnostic: VI1EUR05HT129: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: I6b9vPaZeADJQbLpQmF6ZgkTA/rOKTUg1yDZ6GNinwbW3OB4+pKpSsomI1FlxYP9DfVdzfBUEWX4SdDViRlplpyp+2hocLGt6KdgWaJIbRd5EyZ4+wVk1y/DzQBgo5Eh08lSkli3RqaqkA1lVI2ZdeLADJiZ9HpOs3UvFiWwFv3UhAF49ucwHPo6/+yxv66P4Ud8p9Zvc8wnHAiSGG6vrZ4u5dia5ImSaPVCU26F4GuZcuh5ItMPUdQtgJyBOZuy x-ms-exchange-antispam-messagedata: i6LWj3qpxDQXw968t74hMXPvNiNnpKeCei4NLBeTbCxHZeOs8cSaj7RqhIvbJpIYeszoA2Clt6H5p1LZu+h4umrOu7Z4r0o57X1zrtPfxKh8ZR5LJ3q+oOLgtl1KLRrUVMD/3mkcovpnujNx3/jmmg== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT041.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b0ec57a6-c1e5-4988-e531-08d8a541664c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2020 23:45:57.9951 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT129 Received-SPF: pass client-ip=40.92.90.32; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-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, HTML_MESSAGE=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:261362 Archived-At: --_000_AM0PR06MB65770E93869242D27903ADCC96C10AM0PR06MB6577eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Only thing it would need to refactor out is the packuage-quickstart variabl= e. It would have to be somewhere where Emacs can find it so it can generate= quickstart file if it dies not exists. And if it does not exists it can re= quire package.el and create file, otherwise it is just to proceed with load= ing the quickstart file? Is it that simple or I misunderstand something? -------- Originalmeddelande -------- Fr=E5n: Stefan Monnier Datum: 2020-12-20 18:16 (GMT+01:00) Till: Arthur Miller Kopia: Stefan Kangas , emacs-devel@gnu.org =C4mne: Re: bug#30854: 27.0.50; Speeding up package.el startup >> Would you be interested in trying to split package.el into the "core >> part" needed for `package-activate-all` (and which we could then >> preload), and the rest? >> >> >> Stefan > I have arrived to this from slightly different direction: I did some > optimization as described in Emacs Doom Faq, and just noticed quickstart > file took some time, and looked and it's contents; so I am not really > introduced in what package.el does. It will take me some time to get > into it. > > In my own init I do rude directory-files listing to get all directories > in Elpa directory and I just add those to the path; but packages can be > installed in different places etc; so I will have to take a look at how i= t > is done and what is safe to do/assuem etc. What I'm proposing doesn't involve any of that: no need to reimplement anything. Just look at the existing code and move the relevant parts to a separate file. Stefan --_000_AM0PR06MB65770E93869242D27903ADCC96C10AM0PR06MB6577eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Only thing it would need to refactor out is the packuage-= quickstart variable. It would have to be somewhere where Emacs can find it = so it can generate quickstart file if it dies not exists. And if it does no= t exists it can require package.el and create file, otherwise it is just to proceed with loading the quicksta= rt file?

Is it that simple or I misunderstand something?



-------- Originalmeddelande --------
Fr=E5n: Stefan Monnier <monnier@iro.umontreal.ca>
Datum: 2020-12-20 18:16 (GMT+01:00)
Till: Arthur Miller <arthur.miller@live.com>
Kopia: Stefan Kangas <stefankangas@gmail.com>, emacs-devel@gnu.o= rg
=C4mne: Re: bug#30854: 27.0.50; Speeding up package.el startup

>> Would you be interested in trying to spli= t package.el into the "core
>> part" needed for `package-activate-all` (and which we could t= hen
>> preload), and the rest?
>>
>>
>>         Stefan
> I have arrived to this from slightly different direction: I did some > optimization as described in Emacs Doom Faq, and just noticed quicksta= rt
> file took some time, and looked and it's contents; so I am not really<= br> > introduced in what package.el does. It will take me some time to get > into it.
>
> In my own init I do rude directory-files listing to get all directorie= s
> in Elpa directory and I just add those to the path; but packages can b= e
> installed in different places etc; so I will have to take a look at ho= w it
> is done and what is safe to do/assuem etc.

What I'm proposing doesn't involve any of that: no need to
reimplement anything.
Just look at the existing code and move the relevant parts to
a separate file.


        Stefan

--_000_AM0PR06MB65770E93869242D27903ADCC96C10AM0PR06MB6577eurp_--