From 5c207910c4899af1c547b0e508692d846c145d48 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 14 Dec 2012 16:05:01 +0200 Subject: Speed up most calls to 'stat' and 'lstat' on MS-Windows. src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not try to get accurate owner and group information from NT file security APIs. This is to make most callers of 'stat' and 'lstat', which don't need that information, much faster. src/dired.c (Ffile_attributes) [WINDOWSNT]: Set w32_stat_get_owner_group to a non-zero value, to request accurate owner and group information from 'lstat'. nt/inc/sys/stat.h: Declare w32_stat_get_owner_group. --- src/ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ChangeLog') diff --git a/src/ChangeLog b/src/ChangeLog index c64416a6454..a1dc1c2adab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2012-12-14 Eli Zaretskii + + * w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not + try to get accurate owner and group information from NT file + security APIs. This is to make most callers of 'stat' and + 'lstat', which don't need that information, much faster. + + * dired.c (Ffile_attributes) [WINDOWSNT]: Set + w32_stat_get_owner_group to a non-zero value, to request accurate + owner and group information from 'lstat'. + 2012-12-13 Paul Eggert * fileio.c (Finsert_file_contents): Don't put tail into head area, -- cgit v1.2.1