Os
Os vs Oz, size wise, only is about 100kb difference. but Oz disables some optimizations. Enabling Os instead of Oz brings the binary size up from 876527 bytes to 972775 bytes (a 10.9% increase). Note: I am referring to wasm binary size as that's the main focus of this project
This commit is contained in:
@@ -9,14 +9,14 @@ crate-type=["cdylib"]
|
||||
[profile.release]
|
||||
debug = false
|
||||
codegen-units = 1
|
||||
opt-level = "z" #optimize for size
|
||||
opt-level = "s" #optimize for size
|
||||
lto = true
|
||||
strip = true
|
||||
|
||||
[profile.dev]
|
||||
debug = true
|
||||
codegen-units = 1
|
||||
opt-level = "z" #optimize for size
|
||||
opt-level = "s" #optimize for size
|
||||
lto = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
Reference in New Issue
Block a user