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: Fri, 1 Nov 2024 19:30:13 +0000 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> 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="11695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , acorallo@gnu.org, 41646@debbugs.gnu.org, stefankangas@gmail.com, monnier@gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 20:32:43 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 1t6xNy-0002vW-Pu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 20:32:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6xNO-0001w5-KZ; Fri, 01 Nov 2024 15:32:06 -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 1t6xNL-0001vp-Mr for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:32: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 1t6xNK-0004IQ-I2 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:32:03 -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=aj3rklVJxesnoiSW6fbE3AWVZTNcL8+Sd3DFWaVk18g=; b=XslfiZxQPP9EdhaNRQQF2tyzsYwq0h0mVOUfZG6EELhLZpxVOwOofv2zV+WdlOYnoErwDsBVAU02kUmP7FGi6zpFzbL4EyDKhkAFeQrg7trwgsrpHpIWIm954npDypNr5imLqUhm1hEqWoT+nIZvByy+5jFvE/veE8YnTKXRvt7QmioHjn1RxL7Tbn1tKegDtdJNnLvwRyEETWk0VeslGUdgOoxlYNgOrMCW61nzz3mONhL1zlalHMCdFQhamJFSw3I0X+gnWYpnNhQDq+fK2jjiGxbeAzpIXxrxb39DZ2qPf43bO+KYpnmJHkzSm04VazQIHXzKlnUa8Lu2AG5ajg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6xNK-0003yO-4j for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 15:32: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: Fri, 01 Nov 2024 19:32: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.173048949315257 (code B ref 41646); Fri, 01 Nov 2024 19:32:02 +0000 Original-Received: (at 41646) by debbugs.gnu.org; 1 Nov 2024 19:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:51504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6xMr-0003y1-Hi for submit@debbugs.gnu.org; Fri, 01 Nov 2024 15:31:33 -0400 Original-Received: from mail-ej1-f43.google.com ([209.85.218.43]:57608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6xMo-0003xt-7h for 41646@debbugs.gnu.org; Fri, 01 Nov 2024 15:31:32 -0400 Original-Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a99f3a5a44cso304501466b.3 for <41646@debbugs.gnu.org>; Fri, 01 Nov 2024 12:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730489424; x=1731094224; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aj3rklVJxesnoiSW6fbE3AWVZTNcL8+Sd3DFWaVk18g=; b=XrK0cI3uiUNj30OqFd9sjNS4oRDkswzfSushmd0hx0cqZVIGn7PKUbmSoe4QAFRq9L 7uDDWi8aD++EhgU0IjqQTxNOoUaCWpCVRLjsUFhelBiyg8B4AS3waM/XrhEOde5dy+wi moCWcsq/I4E5mbv2ICbfQW3ObsQ6jjzkf/zkPgWJ0uogOAtE8gupAc4JWUpxbrbdMXoO cYfUHhgaT33lOxVCgVAql39Zx6hNR83gPuSPen2zZR76N796G4pBNfxE//r1nA8XpnCP yjGWA+fOVKF0Zc0SNkOR8FO6xNNQFXolLf69FCooXnNN3YX03oNOkw0wHXMEtTt8CEi1 qEvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730489424; x=1731094224; h=content-transfer-encoding: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=aj3rklVJxesnoiSW6fbE3AWVZTNcL8+Sd3DFWaVk18g=; b=q1muadw6LKbuEmPcNrKKQHRsKgdNbBlgzwb36xfgk97391v7MGOHDlA8usrkligvJ8 lS0IQrFE4y0c6Z65ySpjubkdli64RAA23E8RI+6nDSHuMwBBtxsYuwKEHlaeoA7jy8oK fOmk3RG/w+9pHvqA2/cf/mTWgyCn0YcdCJeDyMPjmJ3KwKw1X8hFka/YpyNXyToMNPBq iW3Aya6YB/Mo8qoxe5jCwxLm1U9Fgi2OukxYqI5u81fXlRFUzT2XmI4c4F1TcXUEMitM +sjzuhlafqsSP4eB4+4+sqRgpXH+s9KICvtBAlJf5vVTui76e7cxtYmK5W6FyzKd9lZA havQ== X-Forwarded-Encrypted: i=1; AJvYcCXcguJy8jWrJRBvcre1bc49YGNemcBPZ5Ktxpqaxx08cFhFOxV+jqL62Nus1UDUz48A+zmFMw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx6Srm2xJV3HV/KVz4UvhEOsMd1ANERVNCgvTAGL93+vdByjIq6 DuUwvkBBEbszQeWFdrUNuofwwhG/jduKfrq28qHAt7HCaRPAADMBjzw+tdTrwAMkSG4e9mSovIn gaLm4EOa2816JlUAhDLTaALAhRO4= X-Google-Smtp-Source: AGHT+IHoRaI6uLMTy79DPNpjjN2gmys6X7YDXI8HmGo1/hD40iL+MbBHNJhwuFt8sFimSYWJpTEKx6/ewD0O5pAAVKg= X-Received: by 2002:a17:906:794c:b0:a99:e505:2089 with SMTP id a640c23a62f3a-a9de61ce121mr984890466b.45.1730489424304; Fri, 01 Nov 2024 12:30:24 -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:294702 Archived-At: On Fri, Nov 1, 2024 at 7:18=E2=80=AFPM Stefan Monnier wrote: > > >> 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 woul= d > >> 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 fi= le > >> is loaded. But of course we could also make efforts to try and keep o= ur > >> 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. > Apologize for my misunderstanding of the "difficult&costly", will read the comments more precisely.