emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS Emacs on Windows XP takes 60 seconds to start


From: Francis Litterio
Subject: Re: CVS Emacs on Windows XP takes 60 seconds to start
Date: Tue, 02 Sep 2008 17:50:59 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]