File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ main = do microbench "insNode into AVL tree" insNodeAVL
56
56
microbench " buildFull into PATRICIA tree 500" (buildFullPatricia 500 )
57
57
microbench " buildFull into PATRICIA tree 1000" (buildFullPatricia 1000 )
58
58
59
- -- microbench "insEdge into AVL tree" insEdgeAVL
59
+ microbench " insEdge into AVL tree" insEdgeAVL
60
60
microbench " insEdge into PATRICIA tree" insEdgePatricia
61
61
62
62
microbench " gmap on AVL tree" gmapAVL
@@ -65,7 +65,7 @@ main = do microbench "insNode into AVL tree" insNodeAVL
65
65
microbench " nmap on AVL tree" nmapAVL
66
66
microbench " nmap on PATRICIA tree" nmapPatricia
67
67
68
- -- microbench "emap on AVL tree" emapAVL
68
+ microbench " emap on AVL tree" emapAVL
69
69
microbench " emap on PATRICIA tree" emapPatricia
70
70
71
71
@@ -107,9 +107,10 @@ insEdgePatricia n = insEdges' (insNodePatricia n) n
107
107
{-# INLINE insEdges' #-}
108
108
insEdges' :: DynGraph gr => gr a () -> Int -> gr a ()
109
109
insEdges' g 0 = g
110
- insEdges' g n = let g' = insEdge (1 , n, () ) g
110
+ insEdges' g n = let n' = n - 1
111
+ g' = insEdge (0 , n', () ) g
111
112
in
112
- insEdges' g' (n - 1 )
113
+ insEdges' g' n'
113
114
114
115
115
116
gmapAVL :: Int -> AVL. Gr Int ()
You can’t perform that action at this time.
0 commit comments