question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vuepress building is too slow ?!

See original GitHub issue
  • I confirm that this is an issue rather than a question.

Bug report

My project is large, it maybe contain 6000 markdown files. Once, I meet the dev performance problem, and I solve it by this command node --max_old_space_size=8192 ./node_modules/vuepress/cli.js dev src.

But, when I run building production, the process is too slow. I also modify the building command with node --max_old_space_size=8192 ./node_modules/vuepress/cli.js build src. Unfortunately, it doesn’t work.

Version

“vuepress”: “^1.0.0-alpha.47”,

Steps to reproduce

What is expected?

What is actually happening?

2019-04-25 15 07 46

Other relevant information

  • Your OS: MAC
  • Node.js version: 8.11
  • Browser version:
  • Is this a global or local install? local
  • Which package manager did you use for the install?
  • Does this issue occur when all plugins are disabled?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:38 (7 by maintainers)

github_iconTop GitHub Comments

21reactions
xbill82commented, May 13, 2019

@ulivz I wouldn’t wipe this issue out so quickly. Sure @JimmyVV should provide more data but I’m migrating a documentation (5000+ files) from Metalsmith to VuePress and the main issue we have now is that we can’t deploy on Netlify because the build time is longer than the maximum build timeout. Metalsmith did build the whole doc within Netlify’s timeouts.

Ok, Vuepress’ build process is surely more complex than Metalsmith and Vuepress is indeed a better tool, but yet… The build time is incredibly bigger in VP and this is strange.

So this is meant to add some data to the “comparison with other static website building tools” you asked above, @ulivz .

@JimmyVV please, would you post your investigations about memleaks introduced by the default theme?

Another point that cannot be ignored is that when @JimmyVV downgrades, the perfs are better. I definitely think we should look into this.

7reactions
JimmyVVcommented, Oct 5, 2019

Recently, I used node workers to speed up the compiling process. the total time decrease from 10min to 2min. Maybe this is another way to improve the compiling procedure, by worker thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config Reference - VuePress
Specify the output directory for vuepress build . If a relative path is specified, it will be resolved based on process.cwd() .
Read more >
Slow image loading - Netlify Support Forums
EDIT: I've checked my local build and it is also showing the issue of multiple images, so I will jump on the VuePress...
Read more >
VuePress builds broken html with invalid adresses to assets
The paths to the CSS and JS files in index.html are absolute (starts with / ), so viewing index.html using the file protocol...
Read more >
Migrating a Drupal 4.6 Site To VuePress - Tandem
VuePress is a newer product that is used to build static based sites. Since the 1.x version of VuePress, a lot of the...
Read more >
Choosing a Static Site Generator - Muhammad Rehan Saeed
I was using WordPress in the past which was achingly slow and a major ... The other thing that I really loved was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found