feat(ivy): skip analysis of unchanged components (#30238)

Now that the dependent files and compilation scopes are being tracked in
the incremental state, we can skip analysing and emitting source files if
none of their dependent files have changed since the last compile.

The computation of what files (and their dependencies) are unchanged is
computed during reconciliation.

This commit also removes the previous emission skipping logic, since this
approach covers those cases already.

PR Close #30238
This commit is contained in:
Pete Bacon Darwin
2019-05-08 15:10:50 +01:00
committed by Alex Rickabaugh
parent 411524d341
commit fbff03b476
6 changed files with 197 additions and 75 deletions

View File

@ -347,7 +347,7 @@ export class NgtscProgram implements api.Program {
continue;
}
if (this.incrementalState.safeToSkipEmit(targetSourceFile)) {
if (this.incrementalState.safeToSkip(targetSourceFile)) {
continue;
}