Re: Unreliable BFD caching heuristic

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 11/25/2013 05:45 PM, Luis Machado wrote:
> We can't rely on the timestamp due to some filesystems having 1 second 
> or 2 seconds resolution. That doesn't seem enough.

We can't rely on timestamps to be sure the files are the same, but
we can assume that if the files have different timestamps, they're
not the same.  IOW, if we have some other fallback file comparison
method that is more expensive, we only need to apply it if the
timestamps match; if they don't match, we can assume the file
is not the same.  Sure, if the same file is accessed through
different filesystems, we can end up thinking we had two handles
for different files, but then all that's lost is we don't apply the
bfd sharing optimization in that rare scenario.

-- 
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.