Skip to content

[Feature request] compiling and rendering with multi workers #995

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

Closed
lslzl3000 opened this issue Jul 23, 2022 · 3 comments
Closed

[Feature request] compiling and rendering with multi workers #995

lslzl3000 opened this issue Jul 23, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@lslzl3000
Copy link

lslzl3000 commented Jul 23, 2022

Clear and concise description of the problem

Try to build with 1000 .md files
It takes more than 9min to compile and render~~ too too slow

Macbook Pro M.2 2022, the cpu performance is good enough
Should be much faster

Suggested solution

Looks like the build process is working in 1 thread
can we enable multi-workers?
e.g Start build.ts in N workers, each build 1/N numbers of pages

Alternative

No response

Additional context

No response

@lslzl3000
Copy link
Author

Also the build process would cause memory leak
Have to work with --max_old_space_size=8192

Is there any better way to manage node memory?
e.g. release objects after compiling/rendering each page

@lslzl3000
Copy link
Author

lslzl3000 commented Jul 23, 2022

Tested with VitePress, same 1000 .md files

!! VitePress only takes 15.9s !!

to build and render all files

also fired bug report in #994

@meteorlxy
Copy link
Member

Duplicate of #994

@meteorlxy meteorlxy marked this as a duplicate of #994 Jul 26, 2022
@meteorlxy meteorlxy added the duplicate This issue or pull request already exists label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants