[GHC] #11707: Don't desugar large lists with build

GHC ghc-devs at haskell.org
Wed Mar 16 16:13:38 UTC 2016


#11707: Don't desugar large lists with build
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2007
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 See #11710; I think we should abandon the "static tail" idea described in
 `Note [Desugaring explicit lists]` entirely.

 Then, to avoid code bloat on very long lists, let's have the patch in this
 ticket, which ensures that if the list is long we revert to cons-list for.
 The goal here is just to eliminate mega-code-bloat in extreme cases.
 (Hence no real need for a flag to control `maxBuildLength`.

 I don't really like it; but I don't want BOTH hacks.  One is enough!

 Not worth burning much midnight oil on this one.

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


More information about the ghc-tickets mailing list