#5102: ghc struggles to compile a large case statement
-------------------------------+--------------------------------------------
Reporter: espringe | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Compile-time performance bug
-------------------------------+--------------------------------------------
Changes (by michalt):
* cc: michal.terepeta@… (added)
* failure: None/Unknown => Compile-time performance bug
Comment:
Not sure if this helps, but I can reproduce this for GHC 7.0.3:
{{{
~/bugs/ghc/5102 0 > time ghc --make -fforce-recomp out.hs
[1 of 1] Compiling Main ( out.hs, out.o )
Linking out ...
real 0m29.649s
user 0m29.320s
sys 0m0.250s
}}}
But for HEAD (7.1.20110415) I'm getting:
{{{
~/bugs/ghc/5102 0 > time ~/dev/ghc/inplace/bin/ghc-stage2 --make -fforce-
recomp out.hs
[1 of 1] Compiling Main ( out.hs, out.o )
Linking out ...
real 0m8.883s
user 0m8.640s
sys 0m0.190s
}}}
The memory usage is similar in both cases though --- around 500 MB.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5102#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs