Skip to content

Bytecode save on demand - #155

Merged
DerThorsten merged 2 commits into
emscripten-forge:mainfrom
DerThorsten:bytecode-save-on-demand
Nov 18, 2026
Merged

DerThorsten merged 2 commits into
emscripten-forge:mainfrom
DerThorsten:bytecode-save-on-demand

Conversation

@DerThorsten

Copy link
Copy Markdown
Collaborator

No description provided.

DerThorsten and others added 2 commits November 18, 2026 13:26
… cache off

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… when the page is hidden), no interval

The 3 s interval listed every __pycache__ dir of every package forever: recurring work with unpredictable cost. Now saving is up to the app (await pyjs.saveBytecode() once the imports are done); the only automatic save is on visibilitychange -> hidden (main thread, best effort).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DerThorsten
DerThorsten merged commit 7e14cc5 into emscripten-forge:main Nov 18, 2026
10 checks passed
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.

1 participant