Skip to content
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

[WIP] Improve performance by reducing unnecessary calls to stats. #736

Closed
wants to merge 2 commits into from

Conversation

asolove
Copy link

@asolove asolove commented Jul 16, 2017

Getting the full build stats can be very expensive, and has to happen for each child compiler. So let's avoid it in cases where we just need specific data from the compilation.

  • Get hash straight off compilation
  • Get chunks off compilation (and update some differences between actual chunk objects and chunk stats)

We have a webpack stress test using the multipage plugin (which uses this plugin). In that test, removing these stats serializations reduced the runtime from 38s to 26s on my machine.

@asolove asolove changed the title Improve performance by reducing unnecessary calls to stats. [WIP] Improve performance by reducing unnecessary calls to stats. Jul 16, 2017
Getting the full build stats can be very expensive, and has to happen for each child compiler. So let's avoid it in cases where we just need specific data from the compilation.

- Get hash straight off compilation
- Get chunks off compilation (and update some differences between actual chunk objects and chunk stats)
@asolove
Copy link
Author

asolove commented Jul 16, 2017

Not sure why the tests pass locally and fail on CI, but I apparently opened this too hastily and need to look into it more.

@asolove asolove closed this Jul 16, 2017
@mastilver
Copy link
Collaborator

#723 duplicate

@lock
Copy link

lock bot commented May 31, 2018

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants