[GHC] #10293: CallArity taking 20% of compile time
GHC
ghc-devs at haskell.org
Thu May 14 19:40:28 UTC 2015
#10293: CallArity taking 20% of compile time
-------------------------------------+-------------------------------------
Reporter: simonpj | Owner: nomeata
Type: bug | Status: closed
Priority: high | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by AlekseyKliger):
I've put together a Gist (by excising code from unbound-generics) that
runs into this issue.
I've not tried the committed fix yet (don't have a GHC tree around), but
perhaps someone else would like to play around with it:
https://gist.github.com/lambdageek/c05cd379fe649600070c
{{{
$ ghc -c -O Alpha.hs
$ ghc -c -v -O Calc.hs
# note Calc.hs hangs on "Called arity analysis"
}}}
To make the compilation take longer, add some more branches to the Expr
datatype - Generics are pretty good for building giant blobs of mutually
recursive functions.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10293#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list