[GHC] #2163: GHC makes thunks for Integers we are strict in

GHC trac at galois.com
Tue Mar 18 12:12:35 EDT 2008


#2163: GHC makes thunks for Integers we are strict in
--------------------------------------+-------------------------------------
 Reporter:  igloo                     |          Owner:         
     Type:  run-time performance bug  |         Status:  closed 
 Priority:  normal                    |      Milestone:  6.8.3  
Component:  Compiler                  |        Version:  6.9    
 Severity:  normal                    |     Resolution:  invalid
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Changes (by simonmar):

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

Comment:

 `let` can be strict in Core - it doesn't always indicate a thunk.  If you
 use `-ddump-stg` you'll see that the expression is evaluated strictly, no
 thunk is built.

 (don't worry, this often catches me out too.  Perhaps a strict let should
 be indicated more explicitly in `-ddump-simpl`).

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


More information about the Glasgow-haskell-bugs mailing list