[GHC] #605: Optimisation: strict enumerations

GHC cvs-ghc at haskell.org
Tue Feb 1 11:43:25 CET 2011


#605: Optimisation: strict enumerations
--------------------------------------+-------------------------------------
  Reporter:  simonmar                 |          Owner:                  
      Type:  task                     |         Status:  new             
  Priority:  normal                   |      Milestone:  _|_             
 Component:  Compiler                 |        Version:  None            
Resolution:  None                     |       Keywords:                  
  Testcase:  N/A                      |      Blockedby:                  
Difficulty:  Difficult (2-5 days)     |             Os:  Unknown/Multiple
  Blocking:                           |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |  
--------------------------------------+-------------------------------------

Comment(by tibbe):

 Replying to [comment:16 rl]:
 > I think there is actually a subtle difference between #4936 and this
 ticket. #4936 proposes to represent enumerations as Int which would indeed
 make boxed enumeration values bigger. This ticket proposes to keep the
 representation of boxed values as it is now but to unbox them to Int# when
 possible. This seems more efficient.

 Yes. I think only transforming strict enumerations (to an `Int#`) is
 enough. No need to change non-strict enumerations to an `Int`.

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



More information about the Glasgow-haskell-bugs mailing list