id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
3581	Compiling with optimizations on hurts performance	gchrupala		"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
"	bug	closed	normal		Compiler	6.10.4	duplicate	optimization		Unknown/Multiple	Unknown/Multiple						
