#5102: ghc struggles to compile a large case statement
-------------------------------------------+--------------------------------
  Reporter:  espringe                      |          Owner:  igloo         
      Type:  bug                           |         Status:  closed        
  Priority:  normal                        |      Milestone:  7.4.1         
 Component:  Compiler                      |        Version:  6.12.3        
Resolution:  worksforme                    |       Keywords:                
  Testcase:                                |      Blockedby:                
Difficulty:                                |             Os:  Linux         
  Blocking:                                |   Architecture:  x86_64 (amd64)
   Failure:  Compile-time performance bug  |  
-------------------------------------------+--------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 I'm not sure what I'm looking for exactly. There are 33797 branches in the
 case expression, and the peak memory (according to `+RTS -t`) is 200M. It
 seems to be roughly linear in the number of branches.

 That's about 6k bytes per branch, which is under 1000 words per branch.
 That doesn't look too unreasonable for a branch like
 {{{
 "AANCOR" -> Just $ Pronunciation [AA1, N, K, AO2, R]
 }}}

 I don't think there's a specific problem here, although constant factor
 improvements may well be possible. Please reopen if you disagree.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to