forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbcb14f4
committed
Make binaryheap enlargeable.
The node array space of the binaryheap is doubled when there is noavailable space.Reviewed-by: Vignesh C, Peter Smith, Hayato Kuroda, Ajin Cherian,Tomas Vondra, Shubham KhannaDiscussion:https://postgr.es/m/CAD21AoDffo37RC-eUuyHJKVEr017V2YYDLyn1xF_00ofptWbkg%40mail.gmail.com1 parent2c91e13 commitbcb14f4
2 files changed
+28
-25
lines changedLines changed: 26 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 |
| - | |
42 | 41 |
| |
43 | 42 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 43 | + | |
| 44 | + | |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
| 50 | + | |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
| |||
74 | 73 |
| |
75 | 74 |
| |
76 | 75 |
| |
| 76 | + | |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
107 | 118 |
| |
108 | 119 |
| |
109 | 120 |
| |
| |||
115 | 126 |
| |
116 | 127 |
| |
117 | 128 |
| |
| 129 | + | |
118 | 130 |
| |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
| 131 | + | |
| 132 | + | |
126 | 133 |
| |
127 | 134 |
| |
128 | 135 |
| |
| |||
153 | 160 |
| |
154 | 161 |
| |
155 | 162 |
| |
| 163 | + | |
156 | 164 |
| |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
| 165 | + | |
| 166 | + | |
164 | 167 |
| |
165 | 168 |
| |
166 | 169 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
|
0 commit comments
Comments
(0)