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: 28.0.50; Proposal: slightly more efficient package-quickstart.el Date: Sat, 24 Jul 2021 00:26:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 24 00:27:11 2021 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 1m73dO-0000NV-JH for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 00:27:10 +0200 Original-Received: from localhost ([::1]:53182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m73dM-000266-G2 for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 18:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73cb-0001Qy-V0 for emacs-devel@gnu.org; Fri, 23 Jul 2021 18:26:21 -0400 Original-Received: from mail-db8eur06olkn2014.outbound.protection.outlook.com ([40.92.51.14]:7136 helo=EUR06-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 1m73cY-0007OC-MI for emacs-devel@gnu.org; Fri, 23 Jul 2021 18:26:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iub82S150Uk824SDq6JLpsre/O2xkP5gQgxR9TnA9exrD8jHAerJaAOCaY2RT9awQrHFPd6c6dikTqFcT0aw1i3sMBjylUvCGnEZBif0IN+Vvoewtsi6sMxUpx9iSO4WJ2eabkCv/70iGaKYUz0XydSchtmABthu44/ixscepL/bNQ3BdsLvsnoeOxD1I8s+jVwr382mywtdQDZfWvrffD5izoPKgxYSSkVnLpPPZM++IJJ7BFwLWetZgygrX01r13mBGN+fzpFs5z7fUehrD4+7pOAmTCYpvOsIIKExqEpdklKSUvQ9gX8J8Sy+oEmaeiBUhqLEBZwFSuTQrK2YTQ== 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=W1zo3t7+YZrzg69VaY88suLecSOKjzVwSwPds63z0h0=; b=ALAaynrt0TbNcdwmf8h4Bggh1zrfL1q3h42DEaDDA3/79hQCAfHGJUFgX+uUUgo1R5v5Xq4YSpHj1OLRsEhC2Sj6Uv65fJi6za1iHkhfkDsb2LsvLpDPwwh5lm/X5hd0sO/+wcCi5LhFa5EX7yCINVNoTxuhyqXxHJleN3L4D+/izVnFNCkys6o53NwP7CyvwyLXTbiGmJ2C1o9tvwMQpsK2ToQ9k7A/ah6mktNKxGGhAS2ywtcTkM0xkdHsyfvh2yh8fUjC/+QzZlGy+cuiDlw7/zuf+TDDQ3soC58HWyzL1F6N0Wp678M3YigzQnDKWJiM0c+1rZYquEHIZoM6sg== 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=W1zo3t7+YZrzg69VaY88suLecSOKjzVwSwPds63z0h0=; b=Y5LEpaUYtshzWgiFrNyWOQQpKm1/YCHShClOEhAEwnaHqKNHGA+J0+760guS6Ix4ApTY2yZxs+nxC23L7hS+kzS21fx6BajI2Zes/C9d0yLE8XHMoWgo/EPwXdO0Uih1bWv5zBUDOqptOZUylZ+KvS1HHgXFGNi0EjRznLKq+/okzAbv/6ehyJC8zbleADFaMYz93uLxUfKOAhAH4M9Hf8McpsRM6HDtPvkXsfrRCAJe72SNyNGupbLDqD/c/CdMud4eBWS5HqKm+EMEUxM5DiE/jLfof3P0sOfE3a/X4Nzh9F4hY8tau81x8hZiJvBenkxQY/hEnWDZ+ZnKHeZ4lg== Original-Received: from VI1EUR06FT020.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::41) by VI1EUR06HT225.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24; Fri, 23 Jul 2021 22:26:15 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc37::42) by VI1EUR06FT020.mail.protection.outlook.com (2a01:111:e400:fc37::201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Fri, 23 Jul 2021 22:26:15 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2FA78DA4D584D48A97BF9595E810227ED2E48CA80A680C294689243CCE1CB426; UpperCasedChecksum:6708E17DE285F3555138B55DE7E08C686E3B1A821748819F8FC1676BD10C4A2D; SizeAsReceived:8838; Count:47 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::e47b:760e:fa35:f28b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::e47b:760e:fa35:f28b%7]) with mapi id 15.20.4352.029; Fri, 23 Jul 2021 22:26:15 +0000 In-Reply-To: (Stefan Monnier's message of "Tue, 20 Jul 2021 11:49:32 -0400") X-TMN: [RltL0HdzRwZmlahCL5geGkhavTPCJPj4] X-ClientProxiedBy: AM6PR02CA0014.eurprd02.prod.outlook.com (2603:10a6:20b:6e::27) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87czr81xbt.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR02CA0014.eurprd02.prod.outlook.com (2603:10a6:20b:6e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Fri, 23 Jul 2021 22:26:14 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: cfafba22-4cba-45d5-36be-08d94e28e21c X-MS-TrafficTypeDiagnostic: VI1EUR06HT225: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zie1ludnn7wrtcGnzDh4E72aegd0xHf9UFsvnwjCG8N5zs5vtkYdMUxGdjzFZmy6MviJZaIU+inEuIbH68qCEtHC5RLU0komb8/PreozKxhiAaDzTuURhpUSWlN/jR0d66JcteKwCTpyMpohlb5mz1XyPfNsLfJcDJderm40XBpEMqO5gtfEMaSU4pKAFC6KzJet9fPuIQg7A7Fbjt1oSo6l4nav70X5g8ZBYIjrbwq2eBWkSTr9aXkGd69VYiF6sJj8ZCtDT5cJM1oFpa+jOfKnuTqeTEsjsFQmH9qk1UedTaXrRuqEwzNK1t4X37mRPk7Yc/2l6i1gctLfsFiEdiltQmrBQ+57roPZg512Gg/q6nuxjSZL6gfkOqb5p9GguGW/q00FE7X1Zz3iXAFMqmg4O31jtBq894B0fDiXUwQ+OBi5/ZlKa07YTzmBjLZP X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3IMp0pcVMUHre1uybdYBRP/C6q25ZzmFjfJz8dDODXRvLNCrglK02kKlByugbCH0FDD/bpP3mrLENSURHujMf8Ovi6FK8+9n24/ArsRHPWczTyPipfepkBNoVDKEeHRbuD8MctY4ScwdlauSRYqMcg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfafba22-4cba-45d5-36be-08d94e28e21c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 22:26:15.3125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR06FT020.eop-eur06.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: VI1EUR06HT225 Received-SPF: pass client-ip=40.92.51.14; envelope-from=arthur.miller@live.com; helo=EUR06-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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, RCVD_IN_VALIDITY_RPBL=1.31, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:271512 Archived-At: Stefan Monnier writes: I just did some tests. I wrote small program and installed all pacakges from elpa. I got ~700 packages installed alltogether (not all are from elpa).=20 I did following tests: I generated file with original quickstart generator and patched one. I also removed half of the packages and generated quickstart file with original generator from package.el Previous to that of course, I have removed my init file, early init, byte compiled versions etc, and also found out that I had to build emacs version without native compiler. Nothing was required, Emacs started with blank init file, so to only measure difference in generated quickstart file. What I found is that to happy you :), it was not much difference between modified and original generator. I got pretty much same timings for both, ~0.47 sec. There is an important thing: if I nconed load-path to generated path, than startup time was significantly higher, it went to ~0.75 sec. When I switched to nconc load-path to generated one (the one that was unsafe) than timing went back to ~0.47. I did 3 mesurements, and I am not sure if iterating throuhg ~700 strings should take that much time, but that happened. Finally original routine, ~700 packages vs 350 packages. Timings where ~0.47 vs ~0.3 (slightly below each time). So obvoisly it is noticable in startup time, even when adding ~300 more packages without doing any=20 customizations in init file. Interesting, when I "bake in" quickstart file into my init file, startup time is ~0.35 sec and that with all my customizations. Maybe disk acces, but since files are in same dir, I expect them both to be fetched in by the driver. I have no other explanation more than so. For the failures, if that is of interest to authors or maintainers: Failed to verify signature realgud-ipdb-1.0.0.tar.sig: Bad signature from 066DAFCB81E42C40 GNU ELPA Signing Agent (2019) Command output: gpg: Signatur gjord l=C3=B6r 21 sep 2019 19:54:19 CEST gpg: med RSA-nyckeln C433554766D3DDC64221BFAA066DAFCB81E42C40 gpg: FELAKTIG signatur fr=C3=A5n "GNU ELPA Signing Agent (2019) " [ok=C3=A4nd] Failed to verify signature scanner-0.2.tar.sig: Bad signature from 066DAFCB81E42C40 GNU ELPA Signing Agent (2019) Command output: gpg: Signatur gjord tis 15 dec 2020 11:05:02 CET gpg: med RSA-nyckeln C433554766D3DDC64221BFAA066DAFCB81E42C40 gpg: FELAKTIG signatur fr=C3=A5n "GNU ELPA Signing Agent (2019) " [ok=C3=A4nd] Even some Ada + 1 more package, but it was before I saved the output. ;; refine-autoloads.el ends here rec-mode - must comment away line below in autoload.el otherwise generation of package-quickstart.el fails: (put rec-open-mode 'safe-local-variable (lambda (x) (member x '(edit naviga= tion)) Compiling file /home/arthur/.emacs.d/elpa/dired-du-0.5.2/dired-du-tests.el = at Fri Jul 23 21:39:36 2021 dired-du-tests.el:61:27: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99t= use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pushnew=E2=80=99 dired-du-tests.el:65:54: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99t= use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pushnew=E2=80=99 dired-du-tests.el:103:11: Warning: Unused lexical variable `info' dired-du-tests.el:110:32: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99= t use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pu= shnew=E2=80=99 dired-du-tests.el:165:27: Warning: Unused lexical variable `name2' dired-du-tests.el:155:27: Warning: Unused lexical variable `name3' dired-du-tests.el:157:32: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99= t use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pu= shnew=E2=80=99 dired-du-tests.el:194:11: Warning: Unused lexical variable `name2' dired-du-tests.el:178:23: Warning: Unused lexical variable `name3' dired-du-tests.el:178:23: Warning: Unused lexical variable `marks' dired-du-tests.el:183:34: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99= t use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pu= shnew=E2=80=99 dired-du-tests.el:230:11: Warning: Unused lexical variable `name2' dired-du-tests.el:212:27: Warning: Unused lexical variable `name3' dired-du-tests.el:213:27: Warning: Unused lexical variable `marks' dired-du-tests.el:215:34: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99= t use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pu= shnew=E2=80=99 dired-du-tests.el:275:11: Warning: Unused lexical variable `filled-subdir-size' dired-du-tests.el:251:27: Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99= t use lexical var =E2=80=98buffers=E2=80=99; use =E2=80=98push=E2=80=99 or =E2=80=98cl-pu= shnew=E2=80=99 Compiling file /home/arthur/.emacs.d/elpa/notes-mode-1.30/notes-index-mode.= el at Fri Jul 23 21:42:23 2021 notes-index-mode.el:26:1: Error: Symbol=E2=80=99s value as variable is void= : Use Entering directory =E2=80=98/home/arthur/.emacs.d/elpa/parsec-0.1.3/example= s/=E2=80=99 full-csv-parser-tests.el:28:1: Error: Cannot open load file: Filen eller katalogen finns inte, full-csv-parser Compiling file /home/arthur/.emacs.d/elpa/phps-mode-0.4.3/admin/phps-mode-a= utomation.el at Fri Jul 23 21:47:38 2021 phps-mode-automation.el:30:1: Error: Cannot open load file: Filen eller katalogen finns inte, phps-mode-automation-grammar Compiling file /home/arthur/.emacs.d/elpa/psgml-1.3.4/sgmldecl/fum.el at Fr= i Jul 23 21:47:46 2021 Entering directory =E2=80=98/home/arthur/.emacs.d/elpa/psgml-1.3.4/sgmldecl= /=E2=80=99 In replace-grammar: fum.el:52:6: Warning: =E2=80=98insert-buffer=E2=80=99 is for interactive us= e only; use =E2=80=98insert-buffer-substring=E2=80=99 instead. In spt-synexp: fum.el:74:17: Warning: =E2=80=98case=E2=80=99 is an obsolete alias (as of 2= 7.1); use =E2=80=98cl-case=E2=80=99 instead. fum.el:227:1: Error: Symbol=E2=80=99s function definition is void: spt-nt-n= ame Leaving directory =E2=80=98/home/arthur/.emacs.d/elpa/psgml-1.3.4/sgmldecl/= =E2=80=99