Fix zombie leak and general inneficiency when copying files to a local git repo.

Benchmarking this with 1000 small files being copied, the time reduced from
15.98s to 14.64s -- an 8% improvement in the non-data-transfer overhead of
git-annex copy.
This commit is contained in:
Joey Hess 2014-03-06 17:12:50 -04:00
parent f61c6231a8
commit 4d06037fdd
3 changed files with 51 additions and 18 deletions

View file

@ -88,6 +88,7 @@ data AnnexState = AnnexState
, gitconfig :: GitConfig
, backends :: [BackendA Annex]
, remotes :: [Types.Remote.RemoteA Annex]
, remoteannexstate :: M.Map UUID AnnexState
, output :: MessageState
, force :: Bool
, fast :: Bool
@ -128,6 +129,7 @@ newState c r = AnnexState
, gitconfig = c
, backends = []
, remotes = []
, remoteannexstate = M.empty
, output = defaultMessageState
, force = False
, fast = False