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

Concurrent build with -j option #981

Closed
Leedehai opened this issue Nov 5, 2018 · 1 comment
Closed

Concurrent build with -j option #981

Leedehai opened this issue Nov 5, 2018 · 1 comment

Comments

@Leedehai
Copy link

Leedehai commented Nov 5, 2018

Feature request

What problem does this feature solve?

Accelerate npm run docs:build for a fairly large documentation site. For example, I hope building the documentation site for VueCLI (link) takes no more than one second or two on my MacBook Pro.

What does the proposed API look like?

npm run docs:build -j or npm run docs:build -j8, where the -j option specifies the number of concurrent jobs (like GNU Make).

How should this be implemented in your opinion?

I think it's best to be left to you experts.

Are you willing to work on this yourself?**

Sorry I'm not that familiar with node.js..

@ulivz ulivz added type: feature request Request to add a new feature help wanted Extra attention is needed labels Nov 6, 2018
@ulivz ulivz removed type: feature request Request to add a new feature help wanted Extra attention is needed labels Nov 17, 2018
@ulivz
Copy link
Member

ulivz commented Nov 17, 2018

I hope building the documentation site for VueCLI (link) takes no more than one second or two on my MacBook Pro.

There are many points that affect the speed of building a document. One is the configuration of your machine, the second is the number of your documents, and the third is whether you use the cache. Every build takes only one second or two? Who can do it?

concurrent jobs

VuePress can only support multiple processes during the renderPage phase. Since there is only one build context, opening a multi-process build requires a lot of data to be transferred, so this does not significantly improve the rendering speed.

In addition, the build speed is more likely up to webpack.

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

No branches or pull requests

2 participants