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 17:58:01 +0000 Message-ID: References: <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> <86zfmizxu2.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="6069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@gnu.org, acorallo@gnu.org, 41646@debbugs.gnu.org, monnier@iro.umontreal.ca, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 19:00: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 1t6vwk-0001O5-Lm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 19:00:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6vwM-0000Ms-9X; Fri, 01 Nov 2024 14:00: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 1t6vwJ-0000KL-IN for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 14:00: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 1t6vwJ-00031m-8B for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 14:00: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=drZgkR+9jmIzG2CzYaAEcbIWXP8DEWueriTJa3terY4=; b=pmZTN1G46kzMGWMOjpT6Ys1P4TFX8/TXY7Hg5IPDw78DJeBZM3+toyxtVlsCFCjwxsf3xB6W77koeW+5kj6KQWrHRApqtMXnonOo8siAZ14BOWMs7k0H+gHH+Pi52YTkCb/BAsztNEWaQ05JjccZybLFOJs2BuGe2ops/PKYGZrI9vjViKprHHHuwAaop6iZpLvYaA0Y3FtvhSz++HJ9LM8gbix4M1M559+ok495NL12VyQroi0Fkb0NKUgWC+d6tIYtUtWkUwZ63CvRUUOifGvQIIl10/ceR4okK+MyMdKTuxg93lNdDz2Ksy3mDlO+6uNtWg/1dv5oioJ2pjl4Fw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6vwJ-0000yL-0S for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 14:00:03 -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 18:00: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.17304839613676 (code B ref 41646); Fri, 01 Nov 2024 18:00:02 +0000 Original-Received: (at 41646) by debbugs.gnu.org; 1 Nov 2024 17:59:21 +0000 Original-Received: from localhost ([127.0.0.1]:50999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6vvc-0000xE-Vw for submit@debbugs.gnu.org; Fri, 01 Nov 2024 13:59:21 -0400 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:61566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6vva-0000x8-LS for 41646@debbugs.gnu.org; Fri, 01 Nov 2024 13:59:19 -0400 Original-Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5ceb03aaddeso2236919a12.2 for <41646@debbugs.gnu.org>; Fri, 01 Nov 2024 10:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730483893; x=1731088693; 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=drZgkR+9jmIzG2CzYaAEcbIWXP8DEWueriTJa3terY4=; b=XnLwuG3PUWGkxKTkF8ACBmVtxh8O90QPR96c6k/hgnshW/PAWonqsjwC/qfwrDiwvi J2D4JF233ayLasOLXy2lquV8LW3NuTbAe38F9tfhv5orTr1+EA58Un6ARdITB6QlEVza qX4a6EA2vE6u0n+GRdeZz7uNvSIoSfLKVPy6/uBawpYg/9min1msuLhYFmZhak4f9vZb 6tDpIQvPOErT5Woz9wfADieLtQW8B9EzsH0tBNCo0E9gFDNyP1DqS3ciL/2Fj7vSjIZm hdSaPSZkylwk3K0lWnYwn+kO1vKCrEwdtLE0JPGK8y7Z3bEFVVW+sBPACgpapNt12LKG 5WBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730483893; x=1731088693; 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=drZgkR+9jmIzG2CzYaAEcbIWXP8DEWueriTJa3terY4=; b=ImsHeYjI7uSmkxou4i1+igoA8+J0XdmeQOPrw/mhTPKT35SfivEpJ4YsEWNB8L7Grb 9pdM+ykdV9mBJZKmGaPS7E7AZHJinWGTwXZAQ+alKdwEA3ek17HqyUwnQTcKNghUR80X IKL3aeKz89pHqG/OijJyitOrU7u3eIVw6RWKDK/JwuWAH9wvXaAR77yi4XYXcHMxS0N/ QqQmt8QbH+yvvUS8HHzpCwz0e6KK63QF5yOYLIL4hroAkRoAHm51/Myj9CQ1tKh3OXJC M+LIfBbbVPhbl3h2qq7FpQ7pCinbtpWBP7WkcXZzFHChTDzHYLw1fqXP33eKA1OpkZn8 tzIg== X-Forwarded-Encrypted: i=1; AJvYcCW5EHDz2sRao/JwvgzxRN7mStDg9DNxxM9WHBQO56342XB13A6Cbim3yRGBbN8rKm5HVL/niw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwEiyjw7J3CBCYMDj/AHg0z9skkF/vqxiY0uHUqGUr7hodqkMby q8wdqrrt9l/yuEwg0vus0yvuhbCs20hpTdUXrXswnTzga+xHIPUjDx3ROYI/AToEq7uxU+8jDt8 khl0Z0YzqyuJn3v7ULXxd1rFB9lY= X-Google-Smtp-Source: AGHT+IHjEKG4mjfoU8XcM/AevqOUKxQFz+KaUpaS7KesJWNkwrVECra/nfA8/TUBSaBKxCagVblJmT6nIQyPXLd5Sxg= X-Received: by 2002:a05:6402:35d2:b0:5ce:c8a3:bad8 with SMTP id 4fb4d7f45d1cf-5cec8a3bbcdmr296994a12.30.1730483892633; Fri, 01 Nov 2024 10:58:12 -0700 (PDT) In-Reply-To: <86zfmizxu2.fsf@gnu.org> 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:294698 Archived-At: On Fri, Nov 1, 2024 at 5:08=E2=80=AFPM Eli Zaretskii wrote: > > > From: Lin Sun > > Date: Fri, 1 Nov 2024 16:56:59 +0000 > > Cc: Eli Zaretskii , stefankangas@gmail.com, acorallo@gnu.= org, > > 41646@debbugs.gnu.org, monnier@gnu.org > > > > On Fri, Nov 1, 2024 at 8:17=E2=80=AFAM Eli Zaretskii wro= te: > > > ... > > > How will the '"file1" "file2" ...' part be created? > > > > For the Emacs built in paths, we can create the ( [files]) > > during bootstrap and write to the "subdirs.el", then it will push the > > extended (, files...) into `load-path'. > > I don't understand: isn't this supposed to speed up primarily users > who have many 3rd-party packages installed? For them, what happens > during bootstrap is not relevant. > > If all we want is to record the places where bundled files live, > that's a much easier problem. Sorry for the fuzz "bootstrap", the "bootstrap" I wanted to say is part of building steps, like "make bootstrap", then we can build the files list into the "subdir.el". Both the startup time and running time will be affected by too many "load-path" entries. Like the "package.el", it will add all 300+ packages' paths on the top of "load-path" at the beginning of startup, the builtin paths will be on the bottom of "load-path", after that a simple "(require ')" will trigger emacs to walk through the "load-path" from top to bottom, that leads thouthands open-attemptions, that happened during emacs startup, or during running time.