Skip to content

perf(ssg/async): ssg concurrency and use react18 renderToPipeableStream instead of renderToString#2243

Merged
SoonIter merged 1 commit intomainfrom
syt/perf-pmap
Jun 6, 2025
Merged

perf(ssg/async): ssg concurrency and use react18 renderToPipeableStream instead of renderToString#2243
SoonIter merged 1 commit intomainfrom
syt/perf-pmap

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Jun 6, 2025

Summary

perf(ssg): for renderToString oom

https://github.com/facebook/docusaurus/blob/45065e8d2b5831117b8d69fec1be28f5520cf105/packages/docusaurus/src/ssg/ssgRenderer.ts#L128

https://github.com/lynx-family/lynx-website/blob/5a0b43f1d2cbd228bffa52064c737ff307226409/package.json#L7

NODE_OPTIONS=--max-old-space-size=8192 rspress build

f58539b4fde61886ca1c27519b980195

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 6, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit e829ee1
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/68428c1d81207f00074f1144
😎 Deploy Preview https://deploy-preview-2243--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 6, 2025

Deploy Preview for rspress ready!

Name Link
🔨 Latest commit e829ee1
🔍 Latest deploy log https://app.netlify.com/projects/rspress/deploys/68428c1d6b51dd0008d2fccf
😎 Deploy Preview https://deploy-preview-2243--rspress.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87 (🔴 down 7 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (🟢 up 9 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@SoonIter SoonIter changed the title perf(ssg): for renderToString oom perf(ssg/async): add process.env.RSPRESS_SSG_CONCURRENCY for renderToString oom Jun 6, 2025
@SoonIter SoonIter changed the title perf(ssg/async): add process.env.RSPRESS_SSG_CONCURRENCY for renderToString oom perf(ssg/async): ssg concurrency and use react18 renderToPipeableStream instead of renderToString Jun 6, 2025
@SoonIter SoonIter requested a review from Timeless0911 June 6, 2025 07:03
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Record a performance optimization data in PR description.

@SoonIter SoonIter enabled auto-merge (squash) June 6, 2025 07:11
@SoonIter SoonIter merged commit 3bf158f into main Jun 6, 2025
16 of 17 checks passed
@SoonIter SoonIter deleted the syt/perf-pmap branch June 6, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants