8000 Optimize speed of `npm run dev` by NWylynko · Pull Request #2296 · clerk/clerk-docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Optimize speed of npm run dev #2296

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

NWylynko
Copy link
Contributor
@NWylynko NWylynko commented Jun 6, 2025

What does this solve?

  • The npm run dev rebuild time is a little slow ~4s currently, it has some caching so its not as slow as a full run npm run build (~8s) but it still does a lot of unnecessary work

What changed?

  • Add caching in to heaviest computation section with logic for proper invalidation of the new cache to reduce unnecessary work, dropping the re-generation time to around ~750ms
Existing dev run ✨ New dev run ✨
Screenshot 2025-06-06 at 10 36 59 PM Screenshot 2025-06-06 at 10 34 54 PM

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • All existing checks pass

@NWylynko NWylynko requested a review from a team as a code owner June 6, 2025 14:39
Copy link
github-actions bot commented Jun 6, 2025

Hey, here’s your docs preview: https://clerk.com/docs/pr/2296

@NWylynko NWylynko requested a review from jescalan June 6, 2025 14:39
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

Successfully merging this pull request may close these issues.

1 participant
0