[GHC] #2731: Avoid unnecessary evaluation when unpacking constructors

GHC ghc-devs at haskell.org
Tue Jun 12 20:50:06 UTC 2018


#2731: Avoid unnecessary evaluation when unpacking constructors
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.5
      Resolution:                    |             Keywords:  CodeGen
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 > To solve this we would need to track the evaluation requirements of
 binders in STG.

 Correct -- and it really would not be hard to do. A relatively
 straightforward task for someone interested in GHC's back end.  I'd be
 happy to advise.

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


More information about the ghc-tickets mailing list