From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41646: Startup in Windows is very slow when load-path contains many entries. Date: Tue, 02 Jun 2020 05:17:40 +0300 Message-ID: <83eeqydxdn.fsf@gnu.org> References: <83y2p6epp5.fsf@gnu.org> <83pnaieme8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="108757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41646@debbugs.gnu.org To: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 02 04:19:11 2020 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 1jfwWF-000SBS-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jun 2020 04:19:11 +0200 Original-Received: from localhost ([::1]:46522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfwWC-0001Yc-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jun 2020 22:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfwW6-0001YV-Mm for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 22:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfwW6-0004me-Dt for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 22:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jfwW6-0000dJ-A8 for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 22:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jun 2020 02:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41646 X-GNU-PR-Package: emacs Original-Received: via spool by 41646-submit@debbugs.gnu.org id=B41646.15910642872372 (code B ref 41646); Tue, 02 Jun 2020 02:19:02 +0000 Original-Received: (at 41646) by debbugs.gnu.org; 2 Jun 2020 02:18:07 +0000 Original-Received: from localhost ([127.0.0.1]:37500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfwV9-0000c8-7h for submit@debbugs.gnu.org; Mon, 01 Jun 2020 22:18:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfwV6-0000be-TM for 41646@debbugs.gnu.org; Mon, 01 Jun 2020 22:18:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34377) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfwV1-00048Y-Mv; Mon, 01 Jun 2020 22:17:55 -0400 Original-Received: from [176.228.60.248] (port=4906 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfwV1-0002KV-2u; Mon, 01 Jun 2020 22:17:55 -0400 In-Reply-To: (message from Nicolas =?UTF-8?Q?B=C3=A9rtolo?= on Mon, 1 Jun 2020 16:51:11 -0300) 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" Xref: news.gmane.io gmane.emacs.bugs:181387 Archived-At: > From: Nicolas BĂ©rtolo > Date: Mon, 1 Jun 2020 16:51:11 -0300 > Cc: 41646@debbugs.gnu.org > > > 'chmod' doesn't access the file, it only accesses the directory. So > > it could be much faster. > > As far as I can see there is no way to issue a call to 'chmod' that does not > try to change the permissions of the file passed. I will try to do it > with access(). Sorry, I meant 'access', of course. More accurately, GetFileAttributes.