New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make dep-check an order of magnitude faster. #20050
Conversation
Runtime goes down from over 4 minutes to 20 seconds. Change: Instead of processing every entry point by itself, create a temporary file that imports all entry points and process that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Single pass dep-check :)
@@ -195,7 +203,9 @@ function getGraph(entryModule) { | |||
.pipe(source(entryModule)) | |||
// Unfortunately we need to write the files out. | |||
.pipe(gulp.dest('./.amp-build')) | |||
.on('end', resolve.bind(null, module)); | |||
.on('end', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just personal preference in readability
Runtime goes down from over 4 minutes to 20 seconds. Change: Instead of processing every entry point by itself, create a temporary file that imports all entry points and process that.
Runtime goes down from over 4 minutes to 20 seconds.
Change: Instead of processing every entry point by itself, create a temporary file that imports all entry points and process that.