bytecodealliance / bytecodealliance/wasmtime

Investigate shrinking code size by removing strings from builds

Open
#9,868 4 comments 0 reactions 0 assignees View on GitHub
wasmtime:code-size
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

We suspect error strings are a major code size offender, and revamping `wasmtime::Error` to optionally (based on compile-time features) contain just error codes, instead of full strings, could improve code size.

And then for regular Wasmtime CLI builds, we would probably want something like

```
$ wasmtime --explain 1234
Error 1234:

```

Apparently the `defmt` and/or `pw_tokenizer` crates could be helpful here, although I have no experience with either of them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.