From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: CVS Emacs on Windows XP takes 60 seconds to start Date: Wed, 03 Sep 2008 00:19:56 +0300 Message-ID: References: <48BD9EA0.60608@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220390511 19674 80.91.229.12 (2 Sep 2008 21:21:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 21:21:51 +0000 (UTC) To: flitterio@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 02 23:22:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KadJx-0005Up-Qf for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 23:21:54 +0200 Original-Received: from localhost ([127.0.0.1]:54518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KadIy-0006LZ-KO for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 17:20:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KadIT-0006Az-JX for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:20:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KadIR-0006A5-PM for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:20:20 -0400 Original-Received: from [199.232.76.173] (port=59755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KadIR-00069z-Kh for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:20:19 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:55898) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KadIR-00026q-PP for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:20:20 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K6L00GMJ7ADUN60@i-mtaout7.012.net.il> for emacs-devel@gnu.org; Wed, 03 Sep 2008 00:20:38 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103451 Archived-At: > Date: Tue, 02 Sep 2008 23:30:49 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > Is this the first time you built the CVS code? If not, when was the > last time you built it (and I presume saw no such slowdown)? Assuming the slowdown started to happen lately, please see if it goes away if you modify the code of the function `stat' to make this `if' condition (on w32.c) if (!(NILP (Vw32_get_true_file_attributes) || (EQ (Vw32_get_true_file_attributes, Qlocal) && devtype != DRIVE_FIXED && devtype != DRIVE_RAMDISK)) /* No access rights required to get info. */ && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL)) != INVALID_HANDLE_VALUE) to always evaluate to zero, thus bypassing the code in the block that follows the `if' clause and calls get_file_owner_and_group.