25 Mar
2013
25 Mar
'13
7:04 p.m.
Chaddaï Fouché <chaddai.fouche@gmail.com> writes:
Well actually, you wouldn't run into this problem if you compiled with optimization options (ghc -O2 -o sumFile sumFile.hs) since the strictness analyzer is pretty good at spotting strict sums. Yeah you are right. The strictness analyzer was also mentioned in one of the links[1]. Had tried compiling with -O after reading it and it worked also, just forgot to mention it. Thanks for pointing it out.
[1] http://www.haskell.org/haskellwiki/Performance/Strictness -- Axel Wegen