From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Sun Newsgroups: gmane.emacs.bugs Subject: bug#41646: Startup in Windows is very slow when load-path contains many Date: Mon, 21 Oct 2024 04:09:25 +0000 Message-ID: References: <86jzedy84g.fsf@gnu.org> <86r08luqsq.fsf@gnu.org> <86frp1unvu.fsf@gnu.org> <86y12stv24.fsf@gnu.org> <86set0th9d.fsf@gnu.org> <86iktwt49w.fsf@gnu.org> <86cyk4t2su.fsf@gnu.org> <86a5f8t0sf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000022e8370624f4d2a5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, 41646@debbugs.gnu.org, stefankangas@gmail.com, monnier@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 06:12:09 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1t2jm5-0002oO-6R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 06:12:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2jlp-0008RF-Ia; Mon, 21 Oct 2024 00:11:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2jla-0008LR-8a for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 00:11:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2jlZ-0004WM-Bq for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 00:11:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=/NDc8cls3SaRk7A/u/ISL065eTXkg5FCW/uXk3RoYMQ=; b=X0gTzLFA1ndqo6POj1oO2L2nJ9TAfkbEkvqSR1JLZQzMPStev3f/N0//K7SEByek6dM2ONfkCVyfrZBHbOiMUkoC4i/jzrr84alfX3Top2h73Wq5kwepRNkhDrL4ULrrq58S57ACfAuUIZ1mSlaa+edZhne8bvWazWfXYoY2F1e+CnrgVYuj4pkzwzqnjKOQZ5ptXPPQ4tuxywONEl80wQl7gSrZkZpOocbkMmGa/A+cA4A8hqyFgyh5g9nBASJyo8It+/urnXmuNguf2Jdg3ph0YRiX49+MwesqldQlF6mqxoCmsKB+SFjV490wPpNevwn19Gk6RZbD6yW68J0hoA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2jly-0000Zo-9e for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 00:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 04:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41646 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed Original-Received: via spool by 41646-submit@debbugs.gnu.org id=B41646.17294838672141 (code B ref 41646); Mon, 21 Oct 2024 04:12:02 +0000 Original-Received: (at 41646) by debbugs.gnu.org; 21 Oct 2024 04:11:07 +0000 Original-Received: from localhost ([127.0.0.1]:49622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2jl4-0000YS-8a for submit@debbugs.gnu.org; Mon, 21 Oct 2024 00:11:07 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:58525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2jl1-0000YJ-F5 for 41646@debbugs.gnu.org; Mon, 21 Oct 2024 00:11:04 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5c9150f9ed4so4884616a12.0 for <41646@debbugs.gnu.org>; Sun, 20 Oct 2024 21:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729483776; x=1730088576; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/NDc8cls3SaRk7A/u/ISL065eTXkg5FCW/uXk3RoYMQ=; b=K/fdhXnWNgVe8dLVppk68hbpCfbGDPiMOIOydCzEN2F69hDzpXwmN1zEt83FPWs4dX WhyjH5CL6ayGMUHQ3L/EnqKkDKMrySitp2un+YJlf1Ym4GEY1KQeAfr24soqEET2WK+E yYEYlL9YTNAMJNLxiOXnM8TaobfiOpwhwOz2yPou5JtAgfRyWZNy2Q/OprjJgbVdEHxD x6t8bN3uZiMg9k+B2u3YhrRzfFgUgnvO31o16wfe8zGrq30XTAqDRdBVcS4JLBJYIt7m h3ORkcltQ98e/ngWT6h+2+A/auerYKNaY0gcxmeADUMksX0TrJCDUlMl2UF6l9tTAUqI amuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729483776; x=1730088576; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/NDc8cls3SaRk7A/u/ISL065eTXkg5FCW/uXk3RoYMQ=; b=U5u63FwaMnaEAawCsIeNaRRnEtovGMozrG5c+H/raaoWiT0ECHwXc6aaYKsqyfOeLg Gp2bn5eGc5vLPbzyrWRP5RwClfrb+W+sILPDb7ngY1Yyr4difochA1EChfDsZeG4/a1p kuQRiJoYTUAF8xwZojKy17v7xOlt2fswcDWJshR8A2xtZZ7GNHcjkKy2cI6XYICUYPIq 0iXaPaSManXswoyZrnK6qdLVVQODT9Qtr2RbizSTmHvhiovNjrBZC52GxrqzjRrYtYyy RhSHP5/8P7CrQYI0+9adoZLUQylW5XcG4+Thm55InbXZIswM3jmPOxXKzFf5nABPhH0/ Oraw== X-Forwarded-Encrypted: i=1; AJvYcCV3QMVbL3+DHsVJYs6QBHPhwW1bGx1ftw9riRujVuIzHMWoUDJpFXxbeqcjRPBDOUFr/VVy1A==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwaW244xQ5ExAQNebYJ65KM4YzQn2ERIqgaV+QzOzGhjPemW+Jc fR91eu0ie6bo6aUP5H33k8x4MiFgKvBFBi6mJbI25F7fNRsKh0BT5NV7v2wbGB5GpNAf4jjRhlN zPMtvX6m6M6uMhB3EQVJ3Lgu5bfo= X-Google-Smtp-Source: AGHT+IF9w+5CT7MUQfVsCCx5LKCD9eAonWAJLbjPSHAPuQ3lxSGqPFTB+cWsqv1InU3M58WEACSbG73Eu/gg6N/cT0s= X-Received: by 2002:a05:6402:d06:b0:5ca:ea4:874a with SMTP id 4fb4d7f45d1cf-5ca0ea48884mr8100110a12.14.1729483776379; Sun, 20 Oct 2024 21:09:36 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294020 Archived-At: --00000000000022e8370624f4d2a5 Content-Type: text/plain; charset="UTF-8" Hi Eli, I had patched the package.el also, and now the `load-hints` can boost the emacs, especially for the emacs on windows. The `load-hints` can reduce searching attempts by putting the matched paths on the top of `load-path`, it won't break the original load-path; and the patch for the `package.el` will put the installed files into the `load-hints`. I tested on both Ubuntu 20.04 and Windows 11, I tested the patches with `load-hints` enabled/disabled, based on the Spacemacs distribution, 276 packages installed, test cli is: emacs -nw --eval "(require 'helm)", 1. On my local linux test env, disable load-hints on the package.el, the test cli spends 6.327s; and enable load-hints then it spends 5.392s. 2. On my local Windows test env, disable load-hints on the package.el, the test cli spends 11.769s, and enable load-hints then it spends 7.279s. It's very effective for windows, without any break changes. Please review the patches. Thanks. Best Regards, Lin --00000000000022e8370624f4d2a5 Content-Type: text/x-patch; charset="US-ASCII"; name="0002-lisp-emacs-lisp-package.el-Support-the-load-hints.patch" Content-Disposition: attachment; filename="0002-lisp-emacs-lisp-package.el-Support-the-load-hints.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m2ihyv1t0 RnJvbSA5MjdiM2U3ZGMxMDk3Y2ZhNGNlOWY2ODFiNDQzOGY5ZDk5NDc2NzM5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBT YXQsIDE5IE9jdCAyMDI0IDA2OjQzOjE1ICswMDAwClN1YmplY3Q6IFtQQVRDSCAyLzJdICogbGlz cC9lbWFjcy1saXNwL3BhY2thZ2UuZWw6IFN1cHBvcnQgdGhlIGxvYWQtaGludHMKCi0tLQogbGlz cC9lbWFjcy1saXNwL3BhY2thZ2UuZWwgfCA3OSArKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDY2IGluc2VydGlvbnMoKyks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yeS1maWxl cyBwa2ctZGlyKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJygi LiIgIi4uIikgOnRlc3QgIydzdHJpbmc9KSkKKyAgICAgICAgICAgICAgICA7OyBsaXN0IG9mIGZp bGVzIGJhc2VuYW1lLCB0aGUgbG9hZC1zdWZmaXhlcyB3YXMgcmVtb3ZlZAorICAgICAgICAgICAg ICAgIChiYXNlcworICAgICAgICAgICAgICAgICAocmVtb3ZlIG5pbAorICAgICAgICAgICAgICAg ICAgICAgICAgIChtYXBjYXIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgKGxhbWJkYSAoZikK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2wtc29tZQorICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAobGFtYmRhIChzKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChp Zi1sZXQqICgobiAobGVuZ3RoIHMpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAoKGxlbmd0aD4gZiBuKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKChzdHJpbmc9IHMgKHN1YnN0cmluZyBmICgtIG4pKSkpKQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoc3Vic3RyaW5nIGYgMCAoLSBuKSkpKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoZ2V0LWxvYWQtc3VmZml4ZXMpKSkKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgZmlsZXMpKSkpCisgICAgICAoc2V0cSBoaW50cy1jb3ZlcmVkLWFsbCAobGVu Z3RoPSBiYXNlcyAobGVuZ3RoIGZpbGVzKSkKKyAgICAgICAgICAgIGhpbnRzLWxpc3QKKyAgICAg ICAgICAgIChjbC1yZW1vdmUtZHVwbGljYXRlcworICAgICAgICAgICAgIChtYXBjYXIgKGxhbWJk YSAocykKKyAgICAgICAgICAgICAgICAgICAgICAgKGZvcm1hdCAiKGFkZC10by1saXN0ICdsb2Fk LWhpbnRzICcoJVMgJVMpKSIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaWYgKHN0 cmluZy1wcmVmaXgtcCBuYW1lIHMpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IChjb25jYXQgbmFtZSAiKiIpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzKQor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBrZy1kaXIpKQorICAgICAgICAgICAgICAg ICAgICAgYmFzZXMpCisgICAgICAgICAgICAgOnRlc3QgJ3N0cmluZz0pKSkKICAgICAobG9hZGRl ZnMtZ2VuZXJhdGUKICAgICAgcGtnLWRpciBvdXRwdXQtZmlsZSBuaWwKLSAgICAgKHByaW4xLXRv LXN0cmluZwotICAgICAgJyhhZGQtdG8tbGlzdAotICAgICAgICAnbG9hZC1wYXRoCi0gICAgICAg IDs7IEFkZCB0aGUgZGlyZWN0b3J5IHRoYXQgd2lsbCBjb250YWluIHRoZSBhdXRvbG9hZCBmaWxl IHRvCi0gICAgICAgIDs7IHRoZSBsb2FkIHBhdGguICBXZSBkb24ndCBoYXJkLWNvZGUgYHBrZy1k aXInLCB0byBhdm9pZAotICAgICAgICA7OyBpc3N1ZXMgaWYgdGhlIHBhY2thZ2UgZGlyZWN0b3J5 IGlzIG1vdmVkIGFyb3VuZC4KLSAgICAgICAgOzsgYGxvYWRkZWZzLWdlbmVyYXRlJyBoYXMgY29k ZSB0byBkbyB0aGlzIGZvciB1cywgYnV0IGl0J3MKLSAgICAgICAgOzsgbm90IGN1cnJlbnRseSBl eHBvc2VkLiAgKEJ1ZyM2MzYyNSkKLSAgICAgICAgKG9yIChhbmQgbG9hZC1maWxlLW5hbWUKLSAg ICAgICAgICAgICAgICAgKGRpcmVjdG9yeS1maWxlLW5hbWUKLSAgICAgICAgICAgICAgICAgIChm aWxlLW5hbWUtZGlyZWN0b3J5IGxvYWQtZmlsZS1uYW1lKSkpCi0gICAgICAgICAgICAgKGNhciBs b2FkLXBhdGgpKSkpKQorICAgICAoY29uY2F0CisgICAgICAod2hlbiBoaW50cy1saXN0CisgICAg ICAgIChzdHJpbmctam9pbiBoaW50cy1saXN0ICJcbiIpKQorICAgICAgIlxuIgorICAgICAgKHVu bGVzcyAoYW5kIGhpbnRzLWNvdmVyZWQtYWxsCisgICAgICAgICAgICAgICAgICAgKGVxIHBhY2th Z2UtZW5hYmxlLWxvYWQtaGludHMgJ2FnZ3Jlc3NpdmUpKQorICAgICAgICAocHJpbjEtdG8tc3Ry aW5nCisgICAgICAgICAnKGFkZC10by1saXN0CisgICAgICAgICAgICdsb2FkLXBhdGgKKyAgICAg ICAgICAgOzsgQWRkIHRoZSBkaXJlY3RvcnkgdGhhdCB3aWxsIGNvbnRhaW4gdGhlIGF1dG9sb2Fk IGZpbGUgdG8KKyAgICAgICAgICAgOzsgdGhlIGxvYWQgcGF0aC4gIFdlIGRvbid0IGhhcmQtY29k ZSBgcGtnLWRpcicsIHRvIGF2b2lkCisgICAgICAgICAgIDs7IGlzc3VlcyBpZiB0aGUgcGFja2Fn ZSBkaXJlY3RvcnkgaXMgbW92ZWQgYXJvdW5kLgorICAgICAgICAgICA7OyBgbG9hZGRlZnMtZ2Vu ZXJhdGUnIGhhcyBjb2RlIHRvIGRvIHRoaXMgZm9yIHVzLCBidXQgaXQncworICAgICAgICAgICA7 OyBub3QgY3VycmVudGx5IGV4cG9zZWQuICAoQnVnIzYzNjI1KQorICAgICAgICAgICAob3IgKGFu ZCBsb2FkLWZpbGUtbmFtZQorICAgICAgICAgICAgICAgICAgICAoZGlyZWN0b3J5LWZpbGUtbmFt ZQorICAgICAgICAgICAgICAgICAgICAgKGZpbGUtbmFtZS1kaXJlY3RvcnkgbG9hZC1maWxlLW5h bWUpKSkKKyAgICAgICAgICAgICAgIChjYXIgbG9hZC1wYXRoKSkpKSkpKQogICAgIChsZXQgKChi dWYgKGZpbmQtYnVmZmVyLXZpc2l0aW5nIG91dHB1dC1maWxlKSkpCiAgICAgICAod2hlbiBidWYg KGtpbGwtYnVmZmVyIGJ1ZikpKQogICAgIGF1dG8tbmFtZSkpCi0tIAoyLjM0LjEKCg== --00000000000022e8370624f4d2a5 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-New-variable-load-hints-to-speedup-searching-file-fo.patch" Content-Disposition: attachment; filename="0001-New-variable-load-hints-to-speedup-searching-file-fo.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m2ihyv281 RnJvbSBlZjdmZGI5NzJiYmRkNDk3NjlhZjY1NTFiNDM0YjE3ZWM2MmQwOTUxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBX ZWQsIDE2IE9jdCAyMDI0IDA3OjMxOjU5ICswMDAwClN1YmplY3Q6IFtQQVRDSCAxLzJdIE5ldyB2 YXJpYWJsZSBsb2FkLWhpbnRzIHRvIHNwZWVkdXAgc2VhcmNoaW5nIGZpbGUgZm9yCiAobG9hZCkg ZnVuY3Rpb24KCiogbGlzcC9zdWJyLmVsOiAobG9jYXRlLWxpYnJhcnkpIHN1cHBvcnQgdGhlIGBs b2FkLWhpbnRzJyB2YXJpYWJsZQoqIHNyYy9scmVhZC5jOiAobG9hZCkgZnVuY3Rpb24gc3VwcG9y dCB0aGUgYGxvYWQtaGludHMnIHZhcmlhYmxlCi0tLQogbGlzcC9zdWJyLmVsIHwgIDkgKystLS0K IHNyYy9scmVhZC5jICB8IDk3ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKy0tLS0tLS0tLS0KIDIgZmlsZXMgY2hhbmdlZCwgODQgaW5zZXJ0aW9ucygrKSwgMjIgZGVs ZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9zdWJyLmVsIGIvbGlzcC9zdWJyLmVsCmluZGV4 IDJlYWVkNjgyNDA2Li4zZDk1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