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

wasm-node: use native inflate implementation when available #1802

Open
tomaka opened this issue Dec 17, 2021 · 2 comments
Open

wasm-node: use native inflate implementation when available #1802

tomaka opened this issue Dec 17, 2021 · 2 comments
Labels
blocked Can't work on this issue because it is blocked on something out of our control priority-low

Comments

@tomaka
Copy link
Contributor

tomaka commented Dec 17, 2021

After #1801, the wasm node decompresses the smoldot wasm bytecode before executing it.
This is done with the pako library.

NodeJS has https://nodejs.org/api/zlib.html, but browsers don't have any equivalent yet.
However I see that https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream is in progress.
If one day it is available then we should make use of it.

@tomaka tomaka added blocked Can't work on this issue because it is blocked on something out of our control priority-low labels Dec 17, 2021
This was referenced Jul 13, 2022
@tomaka
Copy link
Contributor Author

tomaka commented Jul 18, 2022

After #2519 it will be possible to use the NodeJS native API and the Deno native API. Only browsers will need to do the decompression using JS code.

@tomaka
Copy link
Contributor Author

tomaka commented Sep 29, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Can't work on this issue because it is blocked on something out of our control priority-low
Projects
None yet
Development

No branches or pull requests

1 participant