Commit 69dc00f
Add Clone() to UnionFind, use in UnifyTermsExtend
Pre-allocates map capacity when copying the union-find structure,
avoiding unnecessary rehashing during term unification.
Based on github.com//pull/91
Co-Authored-By: apocalypse9949 <dchittibabu641@gmail.com>1 parent 146d96b commit 69dc00f
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
164 | 173 | | |
165 | 174 | | |
| 175 | + | |
| 176 | + | |
166 | 177 | | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| |||
0 commit comments