[GHC] #7850: Strangely high memory usage on optimized Ackermann function

GHC cvs-ghc at haskell.org
Sun Apr 21 03:00:12 CEST 2013


#7850: Strangely high memory usage on optimized Ackermann function
---------------------------------+------------------------------------------
    Reporter:  dolio             |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Milestone:                         
   Component:  Compiler          |     Version:  7.6.2                  
    Keywords:                    |          Os:  Unknown/Multiple       
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
  Difficulty:  Unknown           |    Testcase:                         
   Blockedby:                    |    Blocking:                         
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by dolio):

 I've now built HEAD, and get the same results as monoidal. Both ack and
 tak run in constant memory even with very small stack chunk sizes.

 When using -kc2M, HEAD-built ack actually runs slower than 7.6.x -kc2M.
 And default -kc is quite a bit slower than that, but still much better
 than freezing the machine.

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



More information about the ghc-tickets mailing list