mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b6d0e215f9
This function needs to deduplicate the paths that are found from the paths mappings. Previously this deduplication was not linear and also called the expensive `relative()` function many times. This commit, suggested by @JoostK, reduces the complexity of the deduplication by using a tree structure built from the segments of each path. PR Close #36881