Re: [Haskell-cafe] Parallel Strategy

2012-04-19 Thread mukesh tiwari
Hi Jeff Thanks for the tip. Now its working but scaling is not good. [mukesh.tiwari@pg155-n3 ParallelStrat]$ time ./Main +RTS -N1 101 real0m0.591s user0m0.517s sys0m0.060s [mukesh.tiwari@pg155-n3 ParallelStrat]$ time ./Main +RTS -N2 -s 101 618,757,264 bytes allocated in

[Haskell-cafe] Parallel Strategy

2012-04-18 Thread mukesh tiwari
Hello All I am trying to understand the Strategies ( http://hackage.haskell.org/packages/archive/parallel/3.2.0.2/doc/html/Control-Parallel-Strategies.html) and wrote this quick code. import Data.Listimport Control.Parallel.Strategies fun :: [ Int ] - [ Int ]fun [] = []fun ( x : xs ) = ( x + 1

Re: [Haskell-cafe] Parallel Strategy

2012-04-18 Thread Jeff Shaw
Hello Mukesh Tiwari, I'm wondering what happens if you replace return () with print (last xs). Jeff ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe