use ResourcePool for hash-object handles
Avoid starting an unncessary number of git hash-object processes when concurrency is enabled. Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
b1c49c373a
commit
d905232842
7 changed files with 56 additions and 28 deletions
|
@ -34,7 +34,7 @@ mkResourcePool maxsz = liftIO $
|
|||
<*> newTVarIO []
|
||||
|
||||
{- When there will not be multiple threads that may
|
||||
- may concurrently try to use it, using this is more
|
||||
- concurrently try to use it, using this is more
|
||||
- efficient than mkResourcePool.
|
||||
-}
|
||||
mkResourcePoolNonConcurrent :: (MonadMask m, MonadIO m) => m r -> m (ResourcePool r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue