Hi,
Rafael Almeida wrote: > > On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit <da...@codersbase.com> wrote: > Using bang patterns didn't help almost anything here. Using rem > instead of mod made the time go from 45s to 40s. Now, using -fvia-C > really helped (when I used rem but not using mod). It went down to > 10s. > > What's going on here? Doesn't ghc do tail recursion optimization? > I see similar surprising results here on x86_64 Linux, GHC 6.10.4 (version with bangs): -fasm real 0m25.239s user 0m25.218s sys 0m0.012s -via-c real 0m8.699s user 0m8.641s sys 0m0.020s Best, -- Grzegorz -- View this message in context: http://old.nabble.com/GHC-vs-GCC-tp28045806p28050734.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe