-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit aeb49dd
perf(@angular/cli): cache dependency lookups during
This commit introduces a caching mechanism for project dependency version lookups within the `ng add` command.
A private class field now stores the results of `findProjectVersion`. This avoids redundant file system reads when checking for peer dependency conflicts, leading to a performance improvement. The cache is cleared at the beginning of each `run` execution to ensure freshness.ng add
1 parent e5aed6d commit aeb49dd
1 file changed
+12
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 | + | ||
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
131 | 132 |
| |
132 | 133 |
| |
133 | 134 |
| |
135 | + | ||
134 | 136 |
| |
135 | 137 |
| |
136 | 138 |
| |
| |||
567 | 569 |
| |
568 | 570 |
| |
569 | 571 |
| |
572 | + | ||
573 | + | ||
574 | + | ||
575 | + | ||
576 | + | ||
570 | 577 |
| |
571 | 578 |
| |
572 | 579 |
| |
| |||
576 | 583 |
| |
577 | 584 |
| |
578 | 585 |
| |
586 | + | ||
579 | 587 |
| |
580 | 588 |
| |
581 | 589 |
| |
| |||
590 | 598 |
| |
591 | 599 |
| |
592 | 600 |
| |
601 | + | ||
602 | + | ||
593 | 603 |
| |
594 | 604 |
| |
595 | 605 |
| |
596 | 606 |
| |
607 | + | ||
608 | + | ||
597 | 609 |
| |
598 | 610 |
| |
599 | 611 |
| |
|
0 commit comments