angular/packages/compiler-cli/ngcc/src
Pete Bacon Darwin 0c2ed4c3e5 fix(ngcc): do not use cached file-system (#36687)
The cached file-system was implemented to speed up ngcc
processing, but in reality most files are not accessed many times
and there is no noticeable degradation in speed by removing it.

Benchmarking `ngcc -l debug` for AIO on a local machine
gave a range of 196-236 seconds with the cache and 197-224
seconds without the cache.

Moreover, when running in parallel mode, ngcc has a separate
file cache for each process. This results in excess memory usage.
Notably the master process, which only does analysis of entry-points
holds on to up to 500Mb for AIO when using the cache compared to
only around 30Mb when not using the cache.

Finally, the file-system cache being incorrectly primed with file
contents before being processed has been the cause of a number
of bugs. For example https://github.com/angular/angular-cli/issues/16860#issuecomment-614694269.

PR Close #36687
2020-04-17 16:33:48 -04:00
..
analysis fix(ngcc): correctly detect external files from nested node_modules/ (#36559) 2020-04-10 09:10:26 -07:00
dependencies refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00
entry_point_finder refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00
execution fix(ngcc): do not use cached file-system (#36687) 2020-04-17 16:33:48 -04:00
host fix(compiler): handle type references to namespaced symbols correctly (#36106) 2020-04-09 11:32:21 -07:00
locking fix(ngcc): do not use cached file-system (#36687) 2020-04-17 16:33:48 -04: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): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04: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 style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -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 refactor(ivy): move ngcc into a higher level folder (#29092) 2019-03-20 14:45:54 -04:00
main.ts refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00
ngcc_options.ts refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00
utils.ts refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00