On 28/03/2010, at 11:07, John Meacham wrote:

> I have not thoroughly checked it, but I think there are a couple things
> going on here:

It could also be worthwhile to float out (i*i + j*j) in rangeK instead of 
computing it in every loop iteration. Neither ghc nor gcc can do this; if jhc 
can then that might explain the performance difference (although I would expect 
it to be larger in this case).

Roman


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to