diff options
| author | Eli Zaretskii | 2012-10-12 17:19:54 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-12 17:19:54 +0200 |
| commit | bb385a92ec4f8f5bbc93641aaa274bd735826574 (patch) | |
| tree | 8fff4a185dfc74f91d94edc7b45dcd9dacbfbd67 /src/ChangeLog | |
| parent | 605a3df6811c2b3ce9379149cc8fd64fc9846136 (diff) | |
| download | emacs-bb385a92ec4f8f5bbc93641aaa274bd735826574.tar.gz emacs-bb385a92ec4f8f5bbc93641aaa274bd735826574.zip | |
Fix bug #12587 with slow startup on MS-Windows with Netlogon service.
src/fileio.c (check_existing): New function.
(make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it
instead of calling 'stat', when what's needed is to check whether
a file exists. This avoids expensive system calls on MS-Windows.
src/w32.c (init_environment): Call 'check_existing' instead of 'stat'.
src/lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to
determine whether a file exists and is not a directory.
src/lisp.h (check_existing): Add prototype.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 47b2de24844..76f0226c0bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2012-10-12 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * fileio.c (check_existing): New function. | ||
| 4 | (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it | ||
| 5 | instead of calling 'stat', when what's needed is to check whether | ||
| 6 | a file exists. This avoids expensive system calls on MS-Windows. | ||
| 7 | (Bug#12587) | ||
| 8 | |||
| 9 | * w32.c (init_environment): Call 'check_existing' instead of | ||
| 10 | 'stat'. | ||
| 11 | |||
| 12 | * lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to | ||
| 13 | determine whether a file exists and is not a directory. | ||
| 14 | |||
| 15 | * lisp.h (check_existing): Add prototype. | ||
| 16 | |||
| 1 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> | 17 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 18 | ||
| 3 | * nsfont.m (nsfont_open): Remove font cache, it is not GC correct. | 19 | * nsfont.m (nsfont_open): Remove font cache, it is not GC correct. |