-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Investigate shrinking code size by removing strings from builds #9868
Comments
For me With panic_immediate_abort ( A quick look through the contents of the .rodata section shows that with panic_immediate_abort maybe half are error messages. A significant part of this however are not coming from |
By the way there is currently more space taken up by relocations ( |
The actual strings don't seem to be significant from those numbers. What might be more relevant use is heavy use of
As higher-level anecdata: I have a (non-public) project where I recently replaced all uses of |
|
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
Apparently the
defmt
and/orpw_tokenizer
crates could be helpful here, although I have no experience with either of them.The text was updated successfully, but these errors were encountered: