Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Reduce memory usage when restoring snapshot #1875

Merged
merged 2 commits into from
Mar 27, 2024

Commits on Mar 26, 2024

  1. Python: Reduce memory usage when restoring snapshot

    Previously we paid for two copies of the snapshot memory: one copy in the wasm
    linear memory itself and a second copy in `BUNDLE_MEMORY_SNAPSHOT`. This ensures
    that we never have more memory than one copy of the linear memory heap by
    copying the memory directly from the snapshot to the linear memory. We also
    release the C++ memory when we are done with it.
    hoodmane committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    34da5ba View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Update src/workerd/api/pyodide/pyodide.h

    Co-authored-by: Dominik Picheta <[email protected]>
    hoodmane and dom96 authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    4a22c7b View commit details
    Browse the repository at this point in the history