Skip to content

Commit 4a7e35e

Browse files
committed
kick transitiveDirtyKeys aggressively
1 parent 3439131 commit 4a7e35e

File tree

1 file changed

+2
-0
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal

1 file changed

+2
-0
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Database.hs

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ incDatabase :: Database -> Maybe [Key] -> IO ()
5757
incDatabase db (Just kk) = do
5858
atomicallyNamed "incDatabase" $ modifyTVar' (databaseStep db) $ \(Step i) -> Step $ i + 1
5959
transitiveDirtyKeys <- transitiveDirtySet db kk
60+
-- kick off the computation for the dirty keys
61+
_res <- runAIO $ builder db emptyStack (toListKeySet transitiveDirtyKeys)
6062
for_ (toListKeySet transitiveDirtyKeys) $ \k ->
6163
-- Updating all the keys atomically is not necessary
6264
-- since we assume that no build is mutating the db.

0 commit comments

Comments
 (0)