From cb2255e93aa30425da3213b742745832a0067622 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 12 Jun 2012 16:24:19 -0400 Subject: do fewer commits during long batch jobs 10 thousand queue size does not use appreciable memory in my testing. --- Command/Watch.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/Watch.hs b/Command/Watch.hs index 26875b9a7..8b4e1b65c 100644 --- a/Command/Watch.hs +++ b/Command/Watch.hs @@ -359,7 +359,7 @@ commitStaged = do shouldCommit :: UTCTime -> [Change] -> Bool shouldCommit now changes | len == 0 = False - | len > 4096 = True -- avoid bloating queue too much + | len > 10000 = True -- avoid bloating queue too much | length (filter thisSecond changes) < 10 = True | otherwise = False -- batch activity where -- cgit v1.2.3