do fewer commits during long batch jobs
10 thousand queue size does not use appreciable memory in my testing.
This commit is contained in:
parent
b240418acc
commit
cb2255e93a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue