From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: Re: CVS Emacs on Windows XP takes 60 seconds to start Date: Tue, 02 Sep 2008 17:50:59 -0400 Message-ID: References: <48BD9EA0.60608@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220392422 25966 80.91.229.12 (2 Sep 2008 21:53:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 21:53:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 02 23:54:37 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 1Kadpa-0008OB-49 for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 23:54:34 +0200 Original-Received: from localhost ([127.0.0.1]:33676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kadoa-00010E-RG for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 17:53:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KadoX-0000zz-Qq for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:53:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KadoW-0000zn-Au for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:53:29 -0400 Original-Received: from [199.232.76.173] (port=35315 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KadoW-0000zk-7c for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:53:28 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47980 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KadoW-00072F-4C for emacs-devel@gnu.org; Tue, 02 Sep 2008 17:53:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KadoT-0007Q6-I0 for emacs-devel@gnu.org; Tue, 02 Sep 2008 21:53:25 +0000 Original-Received: from shell01.theworld.com ([192.74.137.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2008 21:53:25 +0000 Original-Received: from flitterio by shell01.theworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2008 21:53:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: shell01.theworld.com X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 103451) X-Random-Quote: I can forgive Alfred Nobel for having invented dynamite, but only a fiend in human form could have invented the Nobel Prize. -- George Bernard Shaw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) Cancel-Lock: sha1:W2FUUdeLJ9c6qaRHNeW4A2MPrfU= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:103454 Archived-At: Eli Zaretskii wrote: >> From: Eli Zaretskii > 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. Eli, I changed the above condition to: if (0) and rebuilt. The resulting emacs.exe starts immediately (both "emacs -q" and "emacs -Q"), and there are no RPC calls made to any external host when Emacs is starting. -- Fran