Repository navigation
perf: reuse loaded cells during WASM kernel startup - #12249
Merged
Merged
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
mscolnick
marked this pull request as ready for review
December 2, 2026 22:11
mscolnick
requested review from
marthacryan
and
a balanced review from Copilot
December 2, 2026 22:11
marthacryan
approved these changes
Dec 2, 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.
This pull request was authored by a coding agent.
The WASM session already compiles each cell when it loads the notebook. Pass those cells to the kernel's startup cache so instantiation can reuse them. Each copy gets fresh runtime state, and cells whose source has changed compile normally.
On a 22-cell notebook, this reduced compiler calls through the WASM bootstrap from 44 to 22. Editing one cell before instantiation brought the count to 23.
Closes MO-8708
Closes #11998