"Kirill M. Katsnelson" <kkm(a)kis.ru> wrote:
Ok, I wrote a simple statometer. On my system (P133 64MB NT 4.0 SP3)
it
averages to around 800 us per stat call.
The cost is related to the number of files in the directory, at
least under Win95. On my system (non-MMX P166, 512KB L2 cache, 64MB
RAM), the program gives:
C>cd \windows
C>\stattest.exe
435 stats in 1590 ms, 3655 us per call
C>cd system
C>\stattest.exe
1215 stats in 9156 ms, 7536 us per call
C>\stattest.exe
1215 stats in 9319 ms, 7670 us per call
C>\stattest.exe
1215 stats in 9045 ms, 7444 us per call
-- 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.