From a964012fc36d22e4554dd12e3594579fb3190501 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 29 Jan 2012 22:55:06 -0400 Subject: switch to the strict state monad I had not realized what a memory leak the lazy state monad could be, although I have not seen much evidence of actual leaking in git-annex. However, if running git-annex on a great many files, this could matter. The additional Utility.State.changeState adds even more strictness, avoiding a problem I saw in github-backup where repeatedly modifying state built up a huge pile of thunks. --- Command/Status.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command/Status.hs') diff --git a/Command/Status.hs b/Command/Status.hs index d2d8d4c07..a1d4eea08 100644 --- a/Command/Status.hs +++ b/Command/Status.hs @@ -7,7 +7,7 @@ module Command.Status where -import Control.Monad.State +import Control.Monad.State.Strict import qualified Data.Map as M import qualified Data.Set as S import Data.Set (Set) -- cgit v1.2.3