Ticket #3582 (closed bug: fixed)
Compiling with optimizations on hurts performance
Description
The attached program runs many times slower when compiled with optimizations (4.5 seconds vs. 1.5 minutes on my machine).
I wasn't able to reduce the program to a small snippet so I attach the whole thing (including data files to process).
I compiled and ran like this:
ghc --make test2.hs time ./test2
And then
ghc --make test2 -fforce-recomp -O time ./test2
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

