Commit 2cf1f8e
committed
Merge #356: Optimize
b31c413 feat: optimize `DependencyMapBuilder` for several entry roots (LesterEvSe)
Pull request description:
Introduce a new `ValidatedDeps` structure and remove `entry_root` from `DependencyMapBuilder`. This also optimizes the build algorithm complexity from `O(n²)` to `O(n log n)`.
Finally, this refactors the tests to accommodate the new functionality and adds helper macros to make testing more convenient.
ACKs for top commit:
KyrylR:
ACK b31c413; successfully ran local tests
Tree-SHA512: f72603e6e7033d21dcc34bb7796dccd2fb118147e07cfee7c302474c8021c9852fb305f4cf513b987600f0d6cb52d00d7d05a9e62b7bd1466e3c6108e60ad6e9DependencyMapBuilder for multiple entry roots5 files changed
Lines changed: 309 additions & 258 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | 1077 | | |
1079 | 1078 | | |
1080 | 1079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 439 | + | |
| 440 | + | |
445 | 441 | | |
446 | 442 | | |
447 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
| 874 | + | |
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | | - | |
1356 | | - | |
| 1355 | + | |
1357 | 1356 | | |
1358 | 1357 | | |
1359 | 1358 | | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | 1361 | | |
1363 | 1362 | | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
| 1363 | + | |
1368 | 1364 | | |
1369 | 1365 | | |
1370 | 1366 | | |
| |||
1455 | 1451 | | |
1456 | 1452 | | |
1457 | 1453 | | |
1458 | | - | |
| 1454 | + | |
| 1455 | + | |
1459 | 1456 | | |
1460 | 1457 | | |
1461 | 1458 | | |
| |||
1664 | 1661 | | |
1665 | 1662 | | |
1666 | 1663 | | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1664 | + | |
1671 | 1665 | | |
1672 | | - | |
| 1666 | + | |
1673 | 1667 | | |
1674 | 1668 | | |
1675 | 1669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | | - | |
| 163 | + | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
0 commit comments