[GHC] #13379: Space leak / quadratic behavior when inlining

GHC ghc-devs at haskell.org
Mon Mar 6 22:07:30 UTC 2017


#13379: Space leak / quadratic behavior when inlining
-------------------------------------+-------------------------------------
        Reporter:  jberryman         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       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:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mpickering):

 I think that the problem is that `>>` and then `thenIO` gets inlined which
 in this case causes the compiler to generate heaps of code to simplify. I
 tried using `Identity` and it compiled instantly.

 It seems plausible that that this shouldn't take a long time but more
 investigation into what exactly is taking a long time is needed.

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


More information about the ghc-tickets mailing list