A few measurements of stat()'s speed
Bastiaan Veelo
Bastiaan at Veelo.net
Wed Mar 27 09:23:18 UTC 2019
On Tuesday, 26 March 2019 at 18:06:08 UTC, Andrei Alexandrescu
wrote:
> On a Linux moderately-loaded local directory (146 files)
> mounted from an SSD drive, one failed stat() takes only about
> 0.5 microseconds. That means e.g. if a module imports std.all
> (which fails 142 times), the overhead accountable to failed
> stat() calls is about 70 microseconds, i.e. negligible.
It could be interesting to know whether timings on Windows are
more significant. If only I knew how to measure this within 10
minutes...
Bastiaan.
More information about the Digitalmars-d
mailing list