perf: speed up utoopack markdown and demo HMR - #2366
Open
fireairforce wants to merge 7 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dumi
dumi-assets-types
@dumijs/vue-meta
father-plugin-dumi-theme
@dumijs/preset-vue
dumi-theme-mobile
commit: |
fireairforce
marked this pull request as ready for review
July 20, 2026 06:32
fireairforce
force-pushed
the
zoomdong/perf-utoopack-md-cache
branch
from
July 20, 2026 06:37
0f8db03 to
1f112a0
Compare
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.
Summary
Related engine work:
Root causes
Ant Design has a large eager documentation graph. The same Markdown/demo analysis was repeated across isolated loader workers, demo-sidecar data was embedded into the page module, and a background persistent-cache snapshot could serialize about 138k tasks while a tiny Markdown update waited. Replacing demo modules could also leave stale deleted-module references when a page and independent preview subscribed together.
This PR keeps the page shell stable, moves deferred demo data into a self-accepted overlay, and asks Utoopack to avoid background snapshot/eviction work only for that scoped mode.
Results
A cold restart with two routes reconnecting and materializing simultaneously can still take about 45s; that is a remaining on-demand route/materialization problem rather than the background snapshot or ordinary Markdown-update path fixed here.
Safety
Validation
dumi
Ant Design
Utoopack/Turbopack