perf(desktop): rendering + bundle roundup (debounce, deferred values, code-split, highlight cache)#3205
Merged
Merged
Conversation
#2954 set vite minify to terser but terser is an optional dep since Vite 3; add it so the production build doesn't fail with 'terser not found'. The mdast-util-gfm-autolink-literal 2.0.0 pin (macOS 12 fix) is preserved.
6 tasks
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.
Desktop performance roundup (@HUQIANTAO) targeting long-session sluggishness / re-render pressure, rebased onto current main-v2 and verified with
wails build(tsc + Go + production bundle).terserdevDependency it relied on — the mdast-util-gfm-autolink-literal 2.0.0 pin for the macOS-12 fix is preserved.)asArrayhandling + a live-guard).Closes #2952
Closes #2953
Closes #2954
Closes #2956
Closes #3117
Deferred (need rework against current main-v2, not in this batch): #3114 (rAF streaming-delta batching — must be adapted to the per-tab
dispatchTomodel; risk of streaming-order bugs) and #3116 (React.lazy panels — conflicts with reworked HistoryPanel props; vite code-splitting in #2954 already covers most of the bundle win).