Description[ES6 modules] FetchDescendants: skip fetch algorithm for descendants that are already ready
Before this CL, we triggered #internal-module-graph-fetch-procedure for
descendants which we already had its entry in the module map.
This CL skips issuing #internal-module-graph-fetch-procedure for those descendants
which we could find its "instantiated" module script entry on module map.
This speeds up module tree fetch performance by reducing number of asynchronous
tasks which has non-trivial overhead. This CL avoids the ModuleTreeLinker to
wait on the asynchronous completion calls which will just complete immediately for
"instantiated" module script tree.
BUG=594639, 722728, 740874
Patch Set 1 #
Messages
Total messages: 8 (7 generated)
|