cache negative lookups of global numcopies and mincopies
Speeds up eg git-annex sync --content by up to 50%. When it does not need to transfer or drop anything, it now noops a lot more quickly. I didn't see anything else in sync --content noop loop that could really be sped up. It has to cat git objects to keys, stat object files, etc. Sponsored-by: unqueued on Patreon
This commit is contained in:
parent
4437e187e6
commit
3c15e0f7a0
5 changed files with 38 additions and 6 deletions
4
Annex.hs
4
Annex.hs
|
@ -183,8 +183,8 @@ data AnnexState = AnnexState
|
|||
, hashobjecthandle :: Maybe (ResourcePool HashObjectHandle)
|
||||
, checkattrhandle :: Maybe (ResourcePool CheckAttrHandle)
|
||||
, checkignorehandle :: Maybe (ResourcePool CheckIgnoreHandle)
|
||||
, globalnumcopies :: Maybe NumCopies
|
||||
, globalmincopies :: Maybe MinCopies
|
||||
, globalnumcopies :: Maybe (Maybe NumCopies)
|
||||
, globalmincopies :: Maybe (Maybe MinCopies)
|
||||
, limit :: ExpandableMatcher Annex
|
||||
, timelimit :: Maybe (Duration, POSIXTime)
|
||||
, sizelimit :: Maybe (TVar Integer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue