perf(www): cache and parallelize registry source loading#931
Merged
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom Mar 22, 2026
Merged
perf(www): cache and parallelize registry source loading#931Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
Conversation
|
@Yeom-JinHo is attempting to deploy a commit to the product-studio Team on Vercel. A member of the Team first needs to authorize it. |
Member
Author
Benchmark ResultsLocal benchmarks show consistent improvements across both route-style and server-rendered docs workloads. Environment:
Measured improvements:
This validates that the change meaningfully reduces docs/LLM source-processing cost, especially for pages that resolve multiple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR reduces server-side work when rendering docs pages and LLM markdown that include registry component sources.
It caches registry source loading, removes redundant per-call processing, and parallelizes
ComponentSourcereplacement so docs-related routes do less file I/O and less serial async work.Changes
React.cache()ts-morph/temp-file setup from registry source extraction<ComponentSource />replacement in docs content instead of resolving each item sequentiallyMotivation
Docs pages and the LLM route repeatedly read the same registry source files, and the previous flow did extra work on every call.
This change is intended to improve response time and reduce unnecessary server I/O for docs pages that render component source blocks.
Breaking Changes
None.