[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using hash instead of timestamps to check for changes.
From: |
Paul Smith |
Subject: |
Re: Using hash instead of timestamps to check for changes. |
Date: |
Fri, 27 Mar 2015 11:48:13 -0400 |
On Fri, 2015-03-27 at 11:45 -0400, Paul Smith wrote:
> * Do we really need to hash the file? Maybe simply expanding the
> current checking is sufficient. For example, if in addition to
> mod time we also considered the size of the file (and maybe
> other things maintained by the filesystem like inode, for tools
> which don't just overwrite the same file) we could increase our
> accuracy WITHOUT resorting to a separate state file. Is that
> good enough?
Actually I typed faster than my brain: we still need a state file of
course to compare sizes. But at least it's still based on filesystem
metadata and doesn't require make to hash the contents of every file in
the build.