diff options
author | Joey Hess <joey@kitenet.net> | 2014-03-06 17:12:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-03-06 17:13:27 -0400 |
commit | 89baf006cdbda863f283472f5fb0005710abee58 (patch) | |
tree | 24193ec75066b984a5297f377c649d5c1284294c /Annex.hs | |
parent | 98ceb92bc1644be2acdc2d1a0f60f25310908dde (diff) |
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.
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |