[GHC] #5916: runST isn't free

GHC cvs-ghc at haskell.org
Sat Mar 10 02:05:11 CET 2012


#5916: runST isn't free
---------------------------------+------------------------------------------
    Reporter:  tibbe             |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by tibbe):

 I locally defined my own versions of `runST` and `runSTRep`, which I
 inlined in the last phase. I looked at the core and validated that in my
 particular case nothing bad had happened. This let me measure the actual
 performance difference: 7% on my particular benchmark. In addition it let
 me move back to nice, clean code.

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



More information about the Glasgow-haskell-bugs mailing list