[DRAFT] Load shared libraries on demand by ryanking13 · Pull Request #6422 · pyodide/pyodide · GitHub
Skip to content

[DRAFT] Load shared libraries on demand - #6422

Draft
ryanking13 wants to merge 15 commits into
pyodide:mainfrom
ryanking13:sharedlib-load-on-demand
Draft

ryanking13 wants to merge 15 commits into
pyodide:mainfrom
ryanking13:sharedlib-load-on-demand

Conversation

@ryanking13

Copy link
Copy Markdown
Member

Close #6390

This is on top of #6354, leaving as draft until the parent PR is merged.


  • Update loadPackage to avoid loading shared libraries / wasm modules by default.
    • Only load when they are over 8MiB
  • Add preloadSharedLibraries option in loadPyodide to allow users using the previous behavior.
  • Update pyodide CLI not to load shared libraries by default.

@juntyr

juntyr commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

@ryanking13

Copy link
Copy Markdown
Member Author

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.

Status of synchronous WASM compilation limitation in main thread (2026/07)

2 participants