> From: Paul Smith <psm...@gnu.org>
> Cc: e...@gnu.org, bug-make@gnu.org
> Date: Wed, 24 Apr 2013 15:07:21 -0400
> 
> I'm not so sure fstat() is that cheap.  struct stat contains a lot of
> information.  Although I guess since we are only ever talking about temp
> files, not NFS files or something, it's probably not too bad.

We could time it if we are afraid of the cost, but I'd be surprised if
'fstat' wasn't extremely fast on Posix platforms.  Most of the
information you get in struct stat is already available when the file
is open.  In particular, the OS tracks the file's size as it is being
written.

(On Windows, we will have to use a different method.)

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to