[Haskell-cafe] Floyd Warshall performance (again)

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Apr 16 04:17:07 EDT 2010


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 at gmail.com



More information about the Haskell-Cafe mailing list