Andrew Coppin wrote:
Program with no particular optimisations: 0.35 seconds.
Program with stream fusion [and GHC HEAD]: 0.25 seconds.
Program with stream fusion and ByteString: 0.05 seconds.

Surely you'd have to work pretty hard to get that kind of speed even in C. ;-)

...erm, actually no. Somebody sat down and wrote something in five minutes that takes 0.005 seconds. Oops!
You may also be paying a fixed cost penalty in GHC run-time initialization. Try increasing N and see what happens.

Paul.

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

Reply via email to