On Sep 10 13:23, Christopher Faylor wrote:
On Fri, Sep 10, 2010 at 05:08:40PM +0200, Corinna Vinschen wrote:
What I'm still mulling over is a good idea to re-use the results of a
former call to readdir in a stat call. One problem here is to make sure
that a subsequent stat call is *really* accessing the same file as the
former readdir returned.
I've considered that before but you really can't cheaply determine that
the file hasn't changed without going to the OS. And, then it isn't cheap.
Yes, that's what it always comes down to. That's why I'm considering to
restrict this speedup to fstatat. I wrote more about this on the
cygwin-developers list.
Corinna