claw back annexed file scan speedup
authorJoey Hess <joeyh@joeyh.name>
Tue, 8 Jun 2021 15:09:15 +0000 (11:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 8 Jun 2021 15:09:15 +0000 (11:09 -0400)
commit7f742589f95b8f5ae3e71ad3261c8cd97e29fa41
tree7855f94cdc503491297f20ab0400f9254a1cafb8
parentec1f2f246bff95989b0613641c4145495384c091
claw back annexed file scan speedup

Following commit c941ab6f5b98becfa2880cb69cbc2c4a39057cd9, this avoids
the second, redundant scan when annex.thin is not set.

The benchmark now runs in 35.5 seconds, down from 40 seconds.

Note that the inode cache of the annex object has to be passed to
addInodeCaches now, because it might not already be in the inode caches,
unlike previously.

Sponsored-by: Dartmouth College's Datalad project
Annex/WorkTree.hs
Database/Keys.hs