From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41646: Startup in Windows is very slow when load-path contains many Date: Fri, 01 Nov 2024 15:17:46 -0400 Message-ID: References: <86frp1unvu.fsf@gnu.org> <86y12stv24.fsf@gnu.org> <86set0th9d.fsf@gnu.org> <86iktwt49w.fsf@gnu.org> <86cyk4t2su.fsf@gnu.org> <86a5f8t0sf.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , acorallo@gnu.org, 41646@debbugs.gnu.org, stefankangas@gmail.com, monnier@gnu.org To: Lin Sun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 20:19:31 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 1t6xBD-0009OT-4s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 20:19:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6xAn-0007ZJ-5C; Fri, 01 Nov 2024 15:19:05 -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 1t6xAl-0007YB-2m for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:19:03 -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 1t6xAk-0002uQ-Q6 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:19:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ebYMSoRWpE8bbaB8qvIsoTY8zgMV2uW/pHibcmFEMsg=; b=XUa5/WW/uTSXsy2j3lTDVZ04XueTb5bqw5VJiTu1NIELDOKAHYD+9hc+JmKbQ6+pm8o+MLB4HDymTqBtm+ABmxKkcsrO8+gB2zgz3h4iN6l/3SBEtbsshCFT5LhJDutcebEaUUwBKtjFUWxgfC3U9h99EDkRaQOkI/dJbN9ts9ez7KjTwtxJx7dcuXVPee/Q10iDOWrcchP6jOvw4GS6r6HENVr9fPTFt3Iqec038bkofvwqcZeqtq5IWVok+hNcB0rmPADuvZ3AhvNCZqPmYf1fACg97ztlHxnEAYXib8tAf8e8OskGSV2i+NrYp5kHZVXs3/J/artk93UZV19ALg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6xAk-0003X6-FR for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2024 19:19: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.173048868813562 (code B ref 41646); Fri, 01 Nov 2024 19:19:02 +0000 Original-Received: (at 41646) by debbugs.gnu.org; 1 Nov 2024 19:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:51441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6x9s-0003Wg-5p for submit@debbugs.gnu.org; Fri, 01 Nov 2024 15:18:08 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6x9p-0003WH-Kz for 41646@debbugs.gnu.org; Fri, 01 Nov 2024 15:18:06 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0BF55441188; Fri, 1 Nov 2024 15:18:00 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1730488674; bh=t4VvwrQOKqnKSHoK9bBorCxhIPSPan9H5KiINR1lMmE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GqQ1990bHl1QD/CVR7d8bgURQkBbkU4iDzGbiYXaxPytcJmNniHQK6I20E+CqmgzT 7/QprLpcgYh1bRJJIuNnbbRb/BEalRsJJQBtWK5hgwJM+hqSYmasldZoUGUm7aMZy8 8YMDtCQWujdXOLaTHoq9Ow+Qsh1kdFdsVEr4IamLPyTvnuPkXlIKxApVfN0oz3m7JZ 3wxAx23dkEbNwmx9oIljypsGAmIVQAHyxHu7V9R8PaF02nN7C+u37YVVU6rir3BZ8M R+I/cV7/HHCxyrtedkVWQz9OpUSUEObb3AzQO/iWkVvaC4CzcOT5fqNVLSGgtvhOty hALwSo+ftvKtA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BED12441183; Fri, 1 Nov 2024 15:17:54 -0400 (EDT) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6EB29120313; Fri, 1 Nov 2024 15:17:54 -0400 (EDT) In-Reply-To: (Lin Sun's message of "Fri, 1 Nov 2024 16:56:59 +0000") 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:294701 Archived-At: >> We can easily detect changes to `load-path` itself, of course, but as >> for changes to the content of the directories in `load-path` that would >> be more difficult&costly, admittedly. My plan was to do nothing >> about it (i.e. allow the cache to go stale): if we use the cache only to >> tell `load` in which directory to look for the file, it should usually >> be safe because IME it's rare for files to be added/removed from >> directories such that it changes from which directory a given ELisp file >> is loaded. But of course we could also make efforts to try and keep our >> cache consistent, e.g. via OS-level notification infrastructure or >> by flushing the cache after a N seconds. > Agree the changes are difficult and costly. I don't understand: I didn't say (nor do I think) that any of that is complex or costly. Stefan