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

perf: remove stats.json generation in webpack #10290

Merged
merged 2 commits into from
Mar 16, 2019
Merged

Conversation

nolanlawson
Copy link
Contributor

This makes it so webpack's BundleAnalyzerPlugin doesn't output a stats.json file.

By my measure, this reduces the time for asset precompilation from 71s to 53s, an 18s improvement. (I took the median of 5 runs to be sure, see raw results below.)

stats.json is only useful for tools like webpack analyse and webpack visualizer, and I'll bet nobody was looking at these.

click for raw results
before

1m12.509s
1m11.164s
1m16.499s
1m7.246s
1m6.841s

after

0m55.038s
0m52.712s
1m3.872s
0m52.329s
0m52.770s

@Gargron Gargron merged commit d5c7997 into master Mar 16, 2019
@ykzts ykzts deleted the nolan/remove-stats-json branch March 16, 2019 12:22
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* perf: remove stats.json generation in webpack

* fix code comment
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
* perf: remove stats.json generation in webpack

* fix code comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants