
4 Jun
2009
4 Jun
'09
3:14 a.m.
Jason Dagit
Be wary of timing things in GHCi. By default there are no optimizations in ghci so you could find that one implementation is much worse than the other but the situation might be completely different when optimizations are enabled. I'm pretty sure if you start ghci with the -O flag that it will use optimizations.
...or if you compile your module first (ghc -c), I believe GHCi will use the compiled code. -k -- If I haven't seen further, it is by standing in the footprints of giants