logo       

-O causing a 7x slowdown (Map of IORef's): msg#00105

lang.haskell.glasgow.bugs

Subject: -O causing a 7x slowdown (Map of IORef's)

Good afternoon,

the attached program is about 7 times slower when compiled
_with_ -O using ghc 6.4. Using ghc 6.2.1 with ddata's Map gives
the same behaviour.

Happy hacking,
Remi


% make

ghc --make -no-recomp Main.hs -o nor
Chasing modules from: Main.hs
Compiling Main ( Main.hs, Main.o )
Linking ...

ghc --make -no-recomp -O Main.hs -o opt
Chasing modules from: Main.hs
Compiling Main ( Main.hs, Main.o )
Linking ...

time -p ./nor
real 1.77
user 1.75
sys 0.00

time -p ./opt
real 13.05
user 12.45
sys 0.06

--
Nobody can be exactly like me. Even I have trouble doing it.

Attachment: Main.hs
Description: Text document

Attachment: Makefile
Description: Text document

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise