"Kirill M. Katsnelson" <kkm(a)kis.ru> wrote:
stat() C library call ends up with FindFirstFile, the API which
starts enumer
ation
of files matching pattern in a directory. Since stats in package search case
usually
come short after listing directory, they must be pretty cheap for the informa
tion
is already cached by the system.
I don't know about NT, but stat() is VERY expensive under Win95.
If I recall correctly, a call to stat() takes on the order of
milliseconds on a non-MMX P166 (and I think over 10ms), under Win95
OSR2. Why, I don't know (this is real/elapsed, and not CPU, time). By
bypassing stat(), and using the native Win32 system calls, my dired-in-C
changes were able to get a significant performance improvement.
-- Darryl Okahata
Internet: darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.