[GHC] #8852: 7.8.1 uses a lot of memory when compiling attoparsec programs using <|>

GHC ghc-devs at haskell.org
Thu Jun 19 11:35:17 UTC 2014


#8852: 7.8.1 uses a lot of memory when compiling attoparsec programs using <|>
-------------------------------------------------+-------------------------
        Reporter:  joelteon                      |            Owner:
            Type:  bug                           |           Status:  new
        Priority:  normal                        |        Milestone:
       Component:  Compiler                      |          Version:
      Resolution:                                |  7.8.1-rc2
Operating System:  Unknown/Multiple              |         Keywords:
 Type of failure:  Compile-time performance bug  |     Architecture:
       Test Case:                                |  Unknown/Multiple
        Blocking:                                |       Difficulty:
                                                 |  Unknown
                                                 |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------

Comment (by rezb1t):

 I'd like to note that this problem occurs when compiling darcs 2.8.4,
 happy, alex, network 2.5.0.0, and quite a few other libraries. Something
 is very wrong here, GHC either uses a tiny amount of RAM or it uses
 gigabytes.

 When compiling darcs, GHC used 4GB of RAM on one source file! Weirder yet,
 I've noticed that when used in tandem with cabal-install, the RAM isn't
 freed in between source files.. whether this is intended or not, I
 couldn't tell, but running ghc in make mode doesn't do this.

 The behavior is the same whether it be GHC 7.8.2 or HEAD of ghc-7.8
 currently

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


More information about the ghc-tickets mailing list