9cec94a008
The import graph scans source files for its import and export statements to extract the source files that it imports/exports. Such statements contain a module specifier string and this module specifier used to be resolved to the actual source file using an explicit module resolution step. This is especially expensive in incremental rebuilds, as the module resolution cache has not been primed during program creation (assuming that the incremental program was able to reuse the module resolution results from a prior compilation). This meant that all module resolution requests would have to hit the filesystem, which is relatively slow. This commit is able to replace the module resolution with TypeScript's bound symbol of the module specifier. This symbol corresponds with the `ts.SourceFile` that is being imported/exported, which is exactly what the import graph was interested in. As a result, no filesystem accesses are done anymore. PR Close #40948 |
||
---|---|---|
.. | ||
analysis | ||
dependencies | ||
entry_point_finder | ||
execution | ||
host | ||
locking | ||
migrations | ||
packages | ||
rendering | ||
writing | ||
command_line_options.ts | ||
constants.ts | ||
main.ts | ||
ngcc_options.ts | ||
path_mappings.ts | ||
utils.ts |