2 ms·
Perforce only scans through everything when you update or scan for changed files, but mostly tracks changes file by file. Git (and mercurial) work with the stat
by silentbicycle 18y ago
Perforce only scans through everything when you update or scan for changed files, but mostly tracks changes file by file. Git (and mercurial) work with the state of the tree as a whole for most operations, because this makes handling searching, branching, merging, etc. much nicer, but it means that when you have gigantic binary files just sitting around, it takes time scanning them as well.
- andr 18y agoWhy not cache the MD5/SHA1 hashes and only update them when the timestamp of the file changes?
- silentbicycle 18y agoMercurial does, by default. I'm almost certain git already does, too.