Commit 6bcf3c4
committed
optimizes the merge function for OGRE documents
The new implementation will untouch the document if the other one is
an empty document or is the same. When the documents are different and
non-trivial we will take the larger one and update it with the smaller
one, which is also faster. At the end, it makes merge more than 10
times faster under certain scenarios.1 parent 4eb72ae commit 6bcf3c4
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
244 | 252 | | |
245 | 253 | | |
246 | 254 | | |
| |||
0 commit comments