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

Add cache-loader to speed up builds #2092

Closed
wants to merge 1 commit into from
Closed

Conversation

Timer
Copy link
Contributor

@Timer Timer commented May 5, 2017

There's a little speed boost for yarn build.
¯\_(ツ)_/¯

no `cache-loader`
real	1m4.240s
real	0m58.490s

`cache-loader`:
real	0m57.913s
real	0m48.341s

#2037

@gaearon gaearon added this to the 0.10.1 milestone May 8, 2017
@Timer
Copy link
Contributor Author

Timer commented May 12, 2017

@jihchi where did you guys apply this / can you review this please? Was it to more than just babel?

As you can see I only got ~10 second improvement.

@jihchi
Copy link
Contributor

jihchi commented May 12, 2017

@Timer Just babel.

Sorry, I forgot to say that project didn't bootstrapped by CRA.
However, I'll find a CRA project and test it.

@li-kai
Copy link

li-kai commented May 13, 2017

Using this just before css-loader and eslint-loader gives a pretty good speed up too.

@jihchi
Copy link
Contributor

jihchi commented May 17, 2017

Following is one of my project result (only applied to babel, version: canary):

no `cache-loader`:
real	1m38.954s
user	1m40.155s

`cache-loader`:
real	1m13.773s
user	1m12.950s

---

File sizes after gzip:

  166.31 KB  build/static/js/1.7097dd5f.chunk.js
  154.97 KB  build/static/js/main.fd62bd46.js
  89.36 KB   build/static/js/2.8ad76376.chunk.js
  38.96 KB   build/static/js/3.63709004.chunk.js
  9.11 KB    build/static/css/main.d14142bf.css
  553 B      build/static/js/4.9c19538c.chunk.js
  321 B      build/static/js/0.a9f70efa.chunk.js

@gaearon gaearon modified the milestones: 1.0.1, 1.0.x May 19, 2017
@Timer Timer closed this Sep 22, 2017
@Timer Timer deleted the speed-boost branch September 22, 2017 03:44
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants