par +parallel

par :: a -> b -> b
parallel Control.Parallel
Indicates that it may be beneficial to evaluate the first argument in parallel with the second. Returns the value of the second argument. a `par` b is exactly equivalent semantically to b. par is generally used when the value of a is likely to be required later, but not immediately. Also it is a good idea to ensure that a is not a trivial computation, otherwise the cost of spawning it in parallel overshadows the benefits obtained by running it in parallel. Note that actual parallelism is only supported by certain implementations (GHC with the -threaded option, and GPH, for now). On other implementations, par a b = b.
parBuffer :: Int -> Strategy a -> Strategy [a]
parallel Control.Parallel.Strategies
Like evalBuffer but evaluates the list elements in parallel when pushing them into the buffer.
parList :: Strategy a -> Strategy [a]
parallel Control.Parallel.Strategies
Evaluate each element of a list in parallel according to given strategy. Equivalent to parTraversable at the list type.
parListChunk :: Int -> Strategy a -> Strategy [a]
parallel Control.Parallel.Strategies
Divides a list into chunks, and applies the strategy evalList strat to each chunk in parallel. It is expected that this function will be replaced by a more generic clustering infrastructure in the future. If the chunk size is 1 or less, parListChunk is equivalent to parList
parListN :: Int -> Strategy a -> Strategy [a]
parallel Control.Parallel.Strategies
Like evalListN but evaluates the first n elements in parallel.
parListNth :: Int -> Strategy a -> Strategy [a]
parallel Control.Parallel.Strategies
Like evalListN but evaluates the nth element in parallel.
parListSplitAt :: Int -> Strategy [a] -> Strategy [a] -> Strategy [a]
parallel Control.Parallel.Strategies
Like evalListSplitAt but evaluates both sublists in parallel.
parMap :: Strategy b -> (a -> b) -> [a] -> [b]
parallel Control.Parallel.Strategies
A combination of parList and map, encapsulating a common pattern: > parMap strat f = withStrategy (parList strat) . map f
parPair :: Strategy a -> Strategy b -> Strategy (a, b)
parallel Control.Parallel.Strategies
DEPRECATED: renamed to parTuple2
parTraversable :: Traversable t => Strategy a -> Strategy (t a)
parallel Control.Parallel.Strategies
Like evalTraversable but evaluates all elements in parallel.
parTraverse :: Traversable t => Strategy a -> Strategy (t a)
parallel Control.Parallel.Strategies
DEPRECATED: renamed to parTraversable
parTriple :: Strategy a -> Strategy b -> Strategy c -> Strategy (a, b, c)
parallel Control.Parallel.Strategies
DEPRECATED: renamed to parTuple3
parTuple2 :: Strategy a -> Strategy b -> Strategy (a, b)
parallel Control.Parallel.Strategies
parTuple3 :: Strategy a -> Strategy b -> Strategy c -> Strategy (a, b, c)
parallel Control.Parallel.Strategies
parTuple4 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy (a, b, c, d)
parallel Control.Parallel.Strategies
parTuple5 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy e -> Strategy (a, b, c, d, e)
parallel Control.Parallel.Strategies
parTuple6 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy e -> Strategy f -> Strategy (a, b, c, d, e, f)
parallel Control.Parallel.Strategies
parTuple7 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy e -> Strategy f -> Strategy g -> Strategy (a, b, c, d, e, f, g)
parallel Control.Parallel.Strategies
parTuple8 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy e -> Strategy f -> Strategy g -> Strategy h -> Strategy (a, b, c, d, e, f, g, h)
parallel Control.Parallel.Strategies
parTuple9 :: Strategy a -> Strategy b -> Strategy c -> Strategy d -> Strategy e -> Strategy f -> Strategy g -> Strategy h -> Strategy i -> Strategy (a, b, c, d, e, f, g, h, i)
parallel Control.Parallel.Strategies

Show more results