Skip to content

Commit

Permalink
kick transitiveDirtyKeys aggressively
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed Apr 29, 2024
1 parent 3439131 commit 4a7e35e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hls-graph/src/Development/IDE/Graph/Internal/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ incDatabase :: Database -> Maybe [Key] -> IO ()
incDatabase db (Just kk) = do
atomicallyNamed "incDatabase" $ modifyTVar' (databaseStep db) $ \(Step i) -> Step $ i + 1
transitiveDirtyKeys <- transitiveDirtySet db kk
-- kick off the computation for the dirty keys
_res <- runAIO $ builder db emptyStack (toListKeySet transitiveDirtyKeys)
for_ (toListKeySet transitiveDirtyKeys) $ \k ->
-- Updating all the keys atomically is not necessary
-- since we assume that no build is mutating the db.
Expand Down

0 comments on commit 4a7e35e

Please sign in to comment.