Skip to content

Commit

Permalink
Use half the available capabilities
Browse files Browse the repository at this point in the history
This is faster for me, for some weird reason.
  • Loading branch information
ollef committed Apr 6, 2020
1 parent f2c942b commit f7b0e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Driver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pooledForConcurrentlyIO_ as f = do
_ <- f a
go
)
replicateConcurrently_ processCount go
replicateConcurrently_ ((processCount + 1) `div` 2) go

pooledForConcurrentlyIO
:: Traversable t
Expand All @@ -344,7 +344,7 @@ pooledForConcurrentlyIO as f = do
atomicWriteIORef ref result
go
)
replicateConcurrently_ processCount go
replicateConcurrently_ ((processCount + 1) `div` 2) go
forM jobs $ \(_, ref) ->
readIORef ref

Expand Down

0 comments on commit f7b0e9d

Please sign in to comment.