[GHC] #13253: Exponential compilation time with RWST & ReaderT stack with `-02`

GHC ghc-devs at haskell.org
Thu Jan 24 13:34:33 UTC 2019


#13253: Exponential compilation time with RWST & ReaderT stack with `-02`
-------------------------------------+-------------------------------------
        Reporter:  phadej            |                Owner:  bgamari, osa1
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #15630            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by onslaughtq):

 This issue has currently bit us as well, after we upgraded from using ghc
 7.10.3 to ghc 8.6.3.  We have an operator that we marked as INLINE and,
 when chaining the operator at least 12 times, as <*> is chained in the
 original bad.hs, compilation blows up.  Marking the function with NOINLINE
 works, but using -O1 instead of -O2 doesn't. If necessary, I can provide
 code examples.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13253#comment:47>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list