[PATCH 4 of 4] The "Chris Mason special": Reduce the amount of
stat traffic generated by a walk
mason at suse.com
Wed Aug 3 09:50:45 CDT 2005
On Friday 29 July 2005 16:26, Bryan O'Sullivan wrote:
> When we switched to the new walk code for commands, we no longer passed
> a list of specific files to the repo or dirstate walk or changes methods.
> This meant that we always walked and attempted to match everything,
> which was not efficient.
> Now, if we are given any patterns to match, or nothing at all, we still
> walk everything. But if we are given only file names that contain no
> glob characters, we only walk those.
Thanks a lot for working on this. It looks like we're still doing the stats
with the code in hg tip though:
strace hg diff Makefile
And look for the stream of stat64 calls.
More information about the Mercurial