
16 Apr
2010
16 Apr
'10
4:17 a.m.
Hello Mathieu, Friday, April 16, 2010, 12:06:06 PM, you wrote:
actions and then running them using sequence_. But still this program runs 3 times slower than it's C counterpart:
ghc low-level code optimization cannot be compared with best modern C compilers that's result of 20 years of optimization. ghc generates machine code in rather simple idiomatic way, so it should be compared to non-optimizing C compiler another haskell compiler, jhc, generates idiomatic C code, that therefore can be compiled by gcc to efficient machine code. but overall jhc is pretty experimental compiler ATM -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com