You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release version .wasm file size (trunk build --release):
Without Algonaut, without optimization: 207 KB
Without Algonaut, with optimization: 143 KB
With Algonaut, without optimization: 967 KB
With Algonaut, with optimization: 770 KB
Where the optimization is:
[profile.release]
# less code to include into binary
panic = 'abort'
# optimization over all codebase ( better optimization, slower build )
codegen-units = 1
# optimization for size ( more aggressive )
opt-level = 'z'
# optimization for size
# opt-level = 's'
# link time optimization using using whole-program analysis
lto = true
These file sizes are obviously not ideal. E.g. building with npm/wasm-pack shows this warning:
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
We should inspect which of our dependencies are responsible for this and see how we can improve it, in worst case and possible, replacing them with leaner (or web specific) dependencies. ring could be a good place to start, which is causing problems with WASM anyway (#59).
The text was updated successfully, but these errors were encountered:
Minimal example project: https://github.com/ivanschuetz/algorand-yew-example
Release version .wasm file size (
trunk build --release
):Where the optimization is:
(See also https://yew.rs/advanced-topics/optimizations#cargotoml)
These file sizes are obviously not ideal. E.g. building with npm/wasm-pack shows this warning:
We should inspect which of our dependencies are responsible for this and see how we can improve it, in worst case and possible, replacing them with leaner (or web specific) dependencies.
ring
could be a good place to start, which is causing problems with WASM anyway (#59).The text was updated successfully, but these errors were encountered: