The program seems to take around 6 seconds on my linux-box, while the c version goes for 0.06 sekcond.

That is really some regression bug :-)

Anyone with a more recent version thatn 7.4.1?

Felix


Fra: Johan Tibell <johan.tibell@gmail.com>
Til: Fixie Fixie <fixie.fixie@rocketmail.com>
Kopi: Haskell cafe <haskell-cafe@haskell.org>
Sendt: Torsdag, 29. november 2012 21.50
Emne: Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

Ack, it seems like you're running into one of these bugs (all now
fixed, but I don't know in which GHC version):

http://hackage.haskell.org/trac/ghc/search?q=doubleFromInteger