angular-cn/packages/compiler-cli
JoostK 898be92f70 perf(ngcc): do not rescan program source files when referenced from multiple root files (#39254)
When ngcc is configured to run with the `--use-program-dependencies`
flag, as is the case in the CLI's asynchronous processing, it will scan
all source files in the program, starting from the program's root files
as configured in the tsconfig. Each individual root file could
potentially rescan files that had already been scanned for an earlier
root file, causing a severe performance penalty if the number of root
files is large. This would be the case if glob patterns are used in the
"include" specification of a tsconfig file.

This commit avoids the performance penalty by keeping track of the files
that have been scanned across all root files, such that no source file
is scanned multiple times.

Fixes #39240

PR Close #39254
2020-10-14 09:34:11 -07:00
..
integrationtest test(compiler-cli): temporarily disable integrationtest (#39168) 2020-10-08 08:43:48 -07:00
linker refactor(compiler-cli): `attachComments()` now expects a defined `leadingComments` array (#39076) 2020-10-06 11:33:55 -07:00
ngcc perf(ngcc): do not rescan program source files when referenced from multiple root files (#39254) 2020-10-14 09:34:11 -07:00
src refactor(compiler-cli): ensure `isNamed....()` helpers check name is identity (#38959) 2020-10-12 08:32:47 -07:00
test fix(compiler-cli): support namespaced query types in directives (#38959) 2020-10-12 08:32:47 -07:00
BUILD.bazel build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json refactor(compiler-cli): implement `BabelAstFactory` and `AstHost`s (#38866) 2020-10-01 09:32:12 -07:00
tsconfig-build.json build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
tsconfig.json perf(ivy): ngcc - only find dependencies when targeting a single entry-point (#30525) 2019-07-09 09:40:46 -07:00