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:35:00 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_AM0PR06MB65772B436AE18624CE58617D96C10AM0PR06MB6577eurp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17448"; 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:51:51 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 1kr8UR-0004RN-8n for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 00:51:51 +0100 Original-Received: from localhost ([::1]:43618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr8UQ-0000Ib-BL for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Dec 2020 18:51:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr8TW-0008Dy-Es for emacs-devel@gnu.org; Sun, 20 Dec 2020 18:50:54 -0500 Original-Received: from mail-am6eur05olkn2041.outbound.protection.outlook.com ([40.92.91.41]:44352 helo=EUR05-AM6-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 1kr8TU-0006h9-K8 for emacs-devel@gnu.org; Sun, 20 Dec 2020 18:50:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DXsA/hEto6GI8E1qefaQA4zBVu8ii8DOIFHKQhzGyf3UF5jO1iMXF1/HGgPQPJAu83hK/x8Y5xXokIeZGCwqMbUblu0cLfPc/dtsmwnHIyO4fX01+WNz8jtpoOdWbWTDoasc3CJomUe5GsU3poPbATpYN0wtxkFIwvfNlL7H5PSKYlHKNzl6u1ozMIAQCPFXMDwUUvgoUKUh48rPhrOV0F1KvrIe8deGFPMMBlic99AHsxdIKEemumChXrG7zcugKKWbqcui8Tos3FWvtxb9vKmbn5gkigOaLXH81ZehyBV/ajXzdU6banB/Xzb6zN510UI8D6N9qKp9t50XKFqqlg== 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=Rkhvdod3eym4O1zQFfHvX1pQHPV2mTQad7+grpXUG4w=; b=oGOwfYqDCkm2UDTnwAb+CbNj/i709QjIEO1+ddzqzNqxlmi1MfWgOdLGusIXLTWnlFIQbQHQqi72barSV4GCsbzZxVgwhQWXyyG/t1q9qtNz0X+prXXKujrX7V54onLc0gD3ja7Q4nxc2yx4kG8eH+NT+iNO7m1l7nX1+m4LmZP5m5RrZ13BLo5SiDqQABQhIU80iS0p5inQt+Gg/xClK8Oz3tpq4soRr7JXsX1jiCeEU/901W/0me3qba4diYd8M8slmt0W8r80Xr84aLbzaQKVdr/VIqJ5cCDN7kO74j4Xj07cXrC3F3HKYORbs+hd5kWMMcg686iOXP9K12kTcg== 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=Rkhvdod3eym4O1zQFfHvX1pQHPV2mTQad7+grpXUG4w=; b=YMmjZRDCpG/f/222E8a637R0oBhlmxCyVTFuDl/35tBcpkhKMe+61CJ/aFk0tHtGFrjl2Vu2uSFCEsmRWeHeX7akPHZ2o8Kprm5ESYTvTs1bhgHUrDIXW0U7FoQlZHuZNlK6nwS/qSZAYanp2hFdwMCHIhJzFEuGOkMBnGnppbrH6Eq16IXNSKF1ZZn6XOHLCiaVr6h4kUavW38dyUfz6e0OO5VOsWUdmewdrRU6X44Xt8ZAT0/SoCCvZ1/6PUcJ+1usMBbJ5aVxmZKc5LFIX283X8RQMwdGsa2k9OvI9v28LCGdZj83pNJ9XkWtghz0GqNZHDvRvoQo4sruIIVHyw== Original-Received: from AM6EUR05FT015.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::46) by AM6EUR05HT217.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::316) 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:35:00 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc11::4d) by AM6EUR05FT015.mail.protection.outlook.com (2a01:111:e400:fc11::290) 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:35:00 +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:35:00 +0000 Thread-Topic: bug#30854: 27.0.50; Speeding up package.el startup Thread-Index: AQHW1SxnqPE89JIayECeIqVhjO4aLKoAPWlsgABptVU= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:F05EA2EFB5A83E120929F20D6F70243B0F00415CBCCC049E9DE7333E4684E1C1; UpperCasedChecksum:993D4A5793332992DFCA5BAFEE563E0E6109C8E5C6CAC783DAC823D72D8D4A6B; SizeAsReceived:7598; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ofgxNAXXwGdYdA5EigR1/iEGwHpT4i2E] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 0518c0a3-ea73-4173-76b6-08d8a53fde3e x-ms-traffictypediagnostic: AM6EUR05HT217: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AeWSLhg6ZlrSFLtpB0qSs1W50SUPDG+AwAkzQ7GJqr652hmUy0mqVsQG/YpfWV2Imc9rb6HA8BuF8jDuZR3BL4Cw/1N8hBFYUy82VYOuRaQ0AUm6tj+Ads3HstQlHTQKaBjZFKZrDeEurkU4a/dZyIQ8Hcx27JZLl1rgyrME/BekkUuhI20+NCTtKUjTNOLHoHPhFVNBm7ebz2B/vsNHPhsn+GYE97GCGaXXJ+Unz6w4sbNGWx4fu8ql7rcHialn x-ms-exchange-antispam-messagedata: /Dfznh9qBSkrxkublRd7tYxFOuGjjOGNvSPSnrQWuubU/3rnMxh7JIx1pxc8WsDrWbiAVHDKLquuGx0FLFbsOOKIbsockO9MKwLaaUZlHlN6U76GLrsYu8BTizDeetYgY210Iwzs9k1lT9LiPL3MPw== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT015.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0518c0a3-ea73-4173-76b6-08d8a53fde3e X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2020 23:35:00.1848 (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: AM6EUR05HT217 Received-SPF: pass client-ip=40.92.91.41; envelope-from=arthur.miller@live.com; helo=EUR05-AM6-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:261364 Archived-At: --_000_AM0PR06MB65772B436AE18624CE58617D96C10AM0PR06MB6577eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I don't think there is anything needed to refactor out of package.el; I don= 't see what is relevant to Emacs startup. As I see the parts for quickstart= are just for creation of quickstart file. I maybe misunderstand, I am just= glancing on my phone Is there any reason to require package.el at startup at all? I am not sure = where do I find how Emacs reads startup files and how entire startup goes, = will have to investigate :-). Btw, seems like quick starts does similar as I did, takes all auotoloads re= gardless if a package is activated or not. Maybe it could concatenatejust a= ctivated packages only? -------- 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_AM0PR06MB65772B436AE18624CE58617D96C10AM0PR06MB6577eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I don't think there is anything needed to refactor out of= package.el; I don't see what is relevant to Emacs startup. As I see the pa= rts for quickstart are just for creation of quickstart file. I maybe misund= erstand, I am just glancing on my phone

Is there any reason to require package.el at startup at a= ll? I am not sure where do I find how Emacs reads startup files and how ent= ire startup goes, will have to investigate :-).

Btw, seems like quick starts does similar as I did, takes= all auotoloads regardless if a package is activated or not. Maybe it could= concatenatejust activated packages only?


-------- 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_AM0PR06MB65772B436AE18624CE58617D96C10AM0PR06MB6577eurp_--