Improvement: Upgrade Webpack 4 #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which was the motivation of this change?
My OS crashed from time to time when processing using Webpack before this.
Benchmarks (/usr/bin/time npx webpack --silent):
145.17user 3.45system 1:23.42elapsed 178%CPU (0avgtext+0avgdata 1247288maxresident)k
3304inputs+44432outputs (0major+1284098minor)pagefaults 0swaps
96.99user 2.77system 0:40.61elapsed 245%CPU (0avgtext+0avgdata 1100384maxresident)k
17608inputs+82000outputs (0major+715383minor)pagefaults 0swaps
80.69user 2.83system 0:34.03elapsed 245%CPU (0avgtext+0avgdata 661888maxresident)k
304inputs+74440outputs (0major+569763minor)pagefaults 0swaps
42.78user 1.04system 0:34.76elapsed 126%CPU (0avgtext+0avgdata 644076maxresident)k
0inputs+91208outputs (0major+220049minor)pagefaults 0swaps