Repository navigation
perf(desktop): bundle the renderer's initial module graph as one chunk - #50110
Merged
Merged
Conversation
Hona
added this pull request to stack #50115
September 20, 2026 06:13
…e main bundle The oc:// handler runs on the main thread, so a ~100 ms module evaluation used to sit between the renderer and its HTML. The entry module now waits for the renderer's initial burst of asset requests to be answered (40 ms quiet, 400 ms cap) before importing the bundle.
Everything statically reachable from the renderer entry is grouped into one chunk (codeSplitting.groups walking importers), so startup fetches one file from the oc:// handler instead of 47 served one main-thread turn each. Lazy routes keep their own chunks.
Hona
force-pushed
the
single-renderer-chunk
branch
from
September 20, 2026 06:17
fb6a88c to
5e1aa4f
Compare
jinhuang712
pushed a commit
to jinhuang712/opencode
that referenced
this pull request
Sep 26, 2026
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.