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
Speed up incremental builds #723
Comments
Disabling treeshaking cuts the times by about 150ms for the initial build and rebuilds. |
@PaulBGD Is that using the |
In the config, but yeah. |
About cold start. Maybe we should support this pattern and follow it also in gobble? |
@Rich-Harris Some benchmarking. Runs in acorn build:main (two targets), window8, node0.12
|
Seems like phase two can be successfully cached two. |
Phases 2-4 don't need to cache they are extremely fast.
This is the time of this chunk
This takes
This
takes this
|
Seems like s.indent method of magic-string is very expensive. |
With |
resolveId should be cachable stuff. For now it takes half of the time with cache. |
@TrySound If we can speed up (
What do you mean by that exactly? |
Agree.
Module instance has |
@TrySound That's quite an improvement! Would you have to be using the node-resolve plugin for that project? |
Yep. It's very expensive relatively. |
@Rich-Harris Is there a sense in cloning instance here https://github.com/rollup/rollup/blob/master/src/Module.js#L450?
P.S. It's the same project on very slow machine. |
Here's my benchmark after last optimisations
|
The result with removing
|
Seems like creating module is expensive operation too.
|
Disabled sourceMaps works like this
|
Disabling treeshaking causes a bug: #1315 |
From rollup/rollup-watch#5:
We should spend some time profiling to see where the bulk of the work is happening, and where the low-hanging fruit is. A couple of thoughts though:
Getting rudimentary caching and file watching was only really the first step, these are the sorts of optimisations we need to start thinking about now.
The text was updated successfully, but these errors were encountered: