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

Publish an alternative Wasm binary with debug symbols enabled #1610

Open
tomaka opened this issue Jan 25, 2024 · 0 comments
Open

Publish an alternative Wasm binary with debug symbols enabled #1610

tomaka opened this issue Jan 25, 2024 · 0 comments

Comments

@tomaka
Copy link
Contributor

tomaka commented Jan 25, 2024

It is right now not really possible to profile smoldot in real-world apps because the smoldot Wasm published on NPM has debug info stripped.
Putting the debug info in the Wasm adds around 2MiB to its size, which is unacceptable.

Ideally, the debug info would be in a source map loaded separately. In practice, this is not possible at the moment.
cc #83
We could look at tools that convert DWARF to source maps, but it seems tedious.

Instead, let's ship a second Wasm binary in the smoldot package, and add a new entry point that makes it possible for end users to load that other binary.

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

No branches or pull requests

1 participant