[Haskell-cafe] Threading and Mullticore Computation

mwinter at brocku.ca mwinter at brocku.ca
Tue Mar 3 12:31:12 EST 2009


In both runs the same computations are done (sequentially resp.
parallel), so the gc should be the same. But still using 2 cores is
much slower than using 1 core (same program - no communication).

On 3 Mar 2009 at 20:21, Bulat Ziganshin wrote:

> Hello mwinter,
> 
> Tuesday, March 3, 2009, 8:09:21 PM, you wrote:
> 
> >    anybody give me an idea what I am doing wrong?
> 
> 1. add -O2 to compile command
> 2. add +RTS -s to run commands
> 
> your program execution time may be dominated by GCs
> 
> 
> -- 
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin at gmail.com




More information about the Haskell-Cafe mailing list