Skip to content

perf: reuse loaded cells during WASM kernel startup - #12249

Merged
mscolnick merged 1 commit into
mainfrom
ms/mo-8708-wasm-startup-fix
Dec 3, 2026
Merged

mscolnick merged 1 commit into
mainfrom
ms/mo-8708-wasm-startup-fix

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@mscolnick
mscolnick marked this pull request as ready for review December 2, 2026 22:11
@mscolnick
mscolnick requested review from marthacryan and a balanced review from Copilot December 2, 2026 22:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@mscolnick
mscolnick merged commit 0455c49 into main Dec 3, 2026
35 of 47 checks passed
@mscolnick
mscolnick deleted the ms/mo-8708-wasm-startup-fix branch December 3, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WASM startup compiles every cell three times (markdown pre-pass result is discarded)

3 participants