add a PERF note about reducing the number of threads
commite0d5d29c44b8da6f05bbdc1b970f840384a4386c
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateFri 28 Jun 2019, 13:38 (7 years ago)
parent8606d64
builder/src/Build.hs+4
@@ -86,6 +86,10 @@ makeEnv key root (Details.Details _ validOutline locals foreigns _) =
8686-- FORK
8787
8888
89+-- PERF try using IORef semephore on file crawl phase?
90+-- described in Chapter 13 of Parallel and Concurrent Programming in Haskell by Simon Marlow
91+-- https://www.oreilly.com/library/view/parallel-and-concurrent/9781449335939/ch13.html#sec_conc-par-overhead
92+--
8993fork :: IO a -> IO (MVar a)
9094fork work =
9195 do mvar <- newEmptyMVar