cache the trustmap

Doubles the speed of fsck, and speeds up drop as well.
This commit is contained in:
Joey Hess 2011-06-23 21:25:39 -04:00
parent a61154baf5
commit 69d3c1cec9
4 changed files with 24 additions and 10 deletions

View file

@ -24,7 +24,7 @@ import Types.Backend
import Types.Remote
import Types.Crypto
import Types.BranchState
import TrustLevel
import Types.TrustLevel
import Types.UUID
-- git-annex's monad
@ -48,6 +48,7 @@ data AnnexState = AnnexState
, fromremote :: Maybe String
, exclude :: [String]
, forcetrust :: [(UUID, TrustLevel)]
, trustmap :: Maybe TrustMap
, cipher :: Maybe Cipher
}
@ -69,6 +70,7 @@ newState allbackends gitrepo = AnnexState
, fromremote = Nothing
, exclude = []
, forcetrust = []
, trustmap = Nothing
, cipher = Nothing
}