adjust countdown number for RepoSize update message
authorJoey Hess <joeyh@joeyh.name>
Sat, 17 Aug 2024 19:59:07 +0000 (15:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sat, 17 Aug 2024 19:59:07 +0000 (15:59 -0400)
Benchmarking a git-annex branch with half a million files changed,
it takes about 1 minute to update the RepoSizes. So this will display
the message after a few seconds.

Annex/RepoSize.hs

index bdd446460c9e483ee27902c8016f51d3916d144c..d7c0f0a4364ebfc31c7391d2c4f36fb27b63007a 100644 (file)
@@ -123,7 +123,7 @@ diffBranchRepoSizes quiet oldsizemap oldbranchsha newbranchsha = do
                feedtid <- liftIO $ async $ do
                        forM_ l $ feedpairs feeder
                        closer
-               newsizemap <- readpairs 500000 reader oldsizemap Nothing
+               newsizemap <- readpairs 100000 reader oldsizemap Nothing
                liftIO $ wait feedtid
                ifM (liftIO cleanup)
                        ( return (newsizemap, newbranchsha)