Re: parList implementation question

2009-12-21 Thread Marcus D. Gabriel
Thanks Simon. Parallel 2.2.0.1 was straight forward. I just replaced rnf with rdeepseq and my original use of parMap worked like a charm giving twice the performance for my dual-core system as I original expected and now find. Thanks, - Marcus Marcus D. Gabriel wrote: > Thank you Simon, I will

Re: parList implementation question

2009-12-21 Thread Marcus D. Gabriel
Thank you Simon, I will obtain parallel 2.2.0.1 and work with it. Actually, the reason I asked my question was because I did not think forceParList should yield better performance than parList (unless it was becasue of the foldl?). I read the release notes for 6.12.1 about the work done on the ghc

Re: parList implementation question

2009-12-21 Thread Simon Marlow
On 18/12/2009 18:31, Marcus D. Gabriel wrote: Hello, In Control.Parallel.Strategies, parList is defined as parList strat [] = () parList strat (x:xs) = strat x `par` (parList strat xs) with parMap strat f xs = map f xs `using` parList strat. I have recently found that if I

Re: parList implementation question

2009-12-20 Thread Marcus D. Gabriel
Well, I finally put in place 6.12.1 and read the documentation for Control.Parallel.Strategies. All of my code for the application described below uses Done, demanding, sparking, (>|), and (>||) which are deprecated and which is what I used. Additionally, I need to understand Eval first to change

Re: parList implementation question

2009-12-19 Thread Marcus D. Gabriel
Denis Bueno wrote: > On Fri, Dec 18, 2009 at 11:31, Marcus D. Gabriel wrote: >> than parList via parMap. For example, in one experiment, parMap >> with parList run at 0.81 the time of the serial solution whereas >> forceParMap with forceParList run at 0.58 the time of the serial >> solution. Thi

Re: parList implementation question

2009-12-18 Thread Denis Bueno
On Fri, Dec 18, 2009 at 11:31, Marcus D. Gabriel wrote: > than parList via parMap.  For example, in one experiment, parMap > with parList run at 0.81 the time of the serial solution whereas > forceParMap with forceParList run at 0.58 the time of the serial > solution.  This is to say, forceParList

parList implementation question

2009-12-18 Thread Marcus D. Gabriel
Hello, In Control.Parallel.Strategies, parList is defined as parList strat [] = () parList strat (x:xs) = strat x `par` (parList strat xs) with parMap strat f xs = map f xs `using` parList strat. I have recently found that if I define forceParMap strat f xs = map f xs `usi