Set opt-level for release to s

O3 mostly enables float optimization, more aggressive loop unrolling and
function inline.

O2 is probably OK, but I want to reduce the binary size a bit by using
opt level "s".

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-03 18:12:37 +10:00
parent caf6f3930b
commit 267307fa28
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -69,6 +69,7 @@ guess_host_triple = "0.1.3"
env_logger = "0.9.0"
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"