@@ -8,11 +8,12 @@ import Prelude hiding (lookup)
88import Data.Proxy (Proxy (..))
99import Data.Typeable (Typeable)
1010
11−import Data.TypeRep.Map (TypeRepMap, empty, insert, lookup, size)
11+import Data.TypeRep.Map (TypeRepMap, empty, insert, lookup, size, dbgShowTree)
1212
1313main :: IO ()
1414main = do
1515 putStrLn $ "size: " ++ (show $ size bigMap)
16+ putStrLn $ "tree:\n" ++ (dbgShowTree bigMap)
1617 defaultMain
1718 [ bench "lookup" $ whnf (lookup :: TypeRepMap -> Maybe Char) bigMap
1819 , bench "insert new" $ whnf (\x -> insert x bigMap) (111 :: Int)
@@ -21,7 +22,7 @@ main = do
2122
2223-- TypeRepMap of 10000 elements
2324bigMap :: TypeRepMap
24−bigMap = buildBigMap 10000 (Proxy :: Proxy Z) empty
25+bigMap = buildBigMap 15 (Proxy :: Proxy Z) empty
2526
2627data Z
2728data S a