[GHC] #8158: Replace IO manager's IntMap with a mutable hash table

GHC ghc-devs at haskell.org
Fri Aug 23 14:21:08 UTC 2013


#8158: Replace IO manager's IntMap with a mutable hash table
-------------------------------+-------------------------------------------
        Reporter:  bos         |            Owner:
            Type:  feature     |           Status:  patch
  request                      |        Milestone:  7.8.1
        Priority:  normal      |          Version:  7.7
       Component:              |         Keywords:
  libraries/base               |     Architecture:  Unknown/Multiple
      Resolution:              |       Difficulty:  Easy (less than 1 hour)
Operating System:              |       Blocked By:
  Unknown/Multiple             |  Related Tickets:
 Type of failure:  Other       |
       Test Case:              |
        Blocking:              |
-------------------------------+-------------------------------------------

Comment (by hvr):

 ...what's the benefit of using a `ForeignPtr Int` over `IORef Int` in

 {{{#!hs
 data IT a = IT { tabArr  :: {-# UNPACK #-} !(Arr (Bucket a))
                , tabSize :: {-# UNPACK #-} !(ForeignPtr Int)
                }
 }}}

 ?

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




More information about the ghc-tickets mailing list