angular/packages/compiler-cli/ngcc/src
Pete Bacon Darwin e037840b88 perf(ngcc): speed up the getBasePaths() computation (#36881)
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
2020-05-04 12:50:02 -07:00
..
analysis fix(ngcc): recognize enum declarations emitted in JavaScript (#36550) 2020-04-28 15:59:57 -07:00
dependencies refactor(ngcc): rename Configuration.getConfig() (#36838) 2020-05-01 09:52:09 -07:00
entry_point_finder perf(ngcc): speed up the getBasePaths() computation (#36881) 2020-05-04 12:50:02 -07:00
execution refactor(ngcc): move PathMappings to separate file to avoid circular dependency (#36626) 2020-04-29 14:28:26 -07:00
host fix(ngcc): support TS 3.9 wrapped ES2015 classes (#36884) 2020-05-04 12:48:26 -07:00
locking fix(ngcc): provide a unique exit code for timeouts (#36838) 2020-05-01 09:52:09 -07:00
logging style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
migrations style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
packages refactor(ngcc): change async locker timeout to 250 secs (#36838) 2020-05-01 09:52:10 -07:00
rendering fix(ngcc): don't crash on cyclic source-map references (#36452) 2020-04-06 13:19:53 -07:00
sourcemaps fix(ngcc): don't crash on cyclic source-map references (#36452) 2020-04-06 13:19:53 -07:00
writing feat(ngcc): support reverting a file written by FileWriter (#36626) 2020-04-29 14:28:26 -07:00
command_line_options.ts fix(ngcc): do not use cached file-system (#36687) 2020-04-17 16:33:48 -04:00
constants.ts fix(ngcc): provide a unique exit code for timeouts (#36838) 2020-05-01 09:52:09 -07:00
main.ts feat(ngcc): allow async locking timeouts to be configured (#36838) 2020-05-01 09:52:10 -07:00
ngcc_options.ts refactor(ngcc): move PathMappings to separate file to avoid circular dependency (#36626) 2020-04-29 14:28:26 -07:00
path_mappings.ts refactor(ngcc): move PathMappings to separate file to avoid circular dependency (#36626) 2020-04-29 14:28:26 -07:00
utils.ts refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00