convert sync to use seekFilteredKeys

This only speeds up sync --content from 34.75 to 33.17 seconds;
location log precaching will probably be a bigger win.
This commit is contained in:
Joey Hess 2020-07-13 15:02:52 -04:00
parent a290792a4f
commit df58609804
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 13 additions and 13 deletions

View file

@ -35,9 +35,9 @@ only gets the size of the blob, not its content.
> This was a win! Nearly 2x faster `git-annex get` seeking.
Some calls to ifAnnexed, whenAnnexed, lookupKey remain, and the above could
be used to remove them and make it faster. In particular, Command.Sync has
a ifAnnexed.
Some calls to lookupKey remain, and the above could
be used to remove them and make it faster. The ones in Annex.View and
Command.Unused seem most likely to be able to be converted.
Also, limits that look up keys still do a key lookup, before the key is
looked up efficiently. (Before these changes, the same key lookup was done