projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af10e49
)
Control.Parallel.Strategies: clarified documentation of parListChunk.
author
bringert@cs.chalmers.se
<unknown>
Sun, 12 Nov 2006 23:29:04 +0000
(23:29 +0000)
committer
bringert@cs.chalmers.se
<unknown>
Sun, 12 Nov 2006 23:29:04 +0000
(23:29 +0000)
Control/Parallel/Strategies.hs
patch
|
blob
|
history
diff --git
a/Control/Parallel/Strategies.hs
b/Control/Parallel/Strategies.hs
index
5a057ac
..
72a8381
100644
(file)
--- a/
Control/Parallel/Strategies.hs
+++ b/
Control/Parallel/Strategies.hs
@@
-397,8
+397,10
@@
parListNth n strat xs
where
rest = drop n xs
where
rest = drop n xs
--- | Sequentially applies a strategy to chunks
--- (sub-sequences) of a list in parallel. Useful to increase grain size.
+-- | Splits a list into chunks (sub-sequences) of length @n@,
+-- and applies a strategy sequentially to the elements in each
+-- chunk. The chunks are evaluated in parallel.
+-- This is useful for increasing the grain size.
parListChunk :: Int -> Strategy a -> Strategy [a]
parListChunk n strat [] = ()
parListChunk n strat xs = seqListN n strat xs `par`
parListChunk :: Int -> Strategy a -> Strategy [a]
parListChunk n strat [] = ()
parListChunk n strat xs = seqListN n strat xs `par`