Skip to content

Commit 1e734ce

Browse files
sparrcbnusunny
andauthored
perf: Add panic=abort and opt-level=s to release profile (#646)
Taken together this reduces binary size by around 33% Co-authored-by: Harold Sun <sunhua@amazon.com>
1 parent 0cc94fa commit 1e734ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ harness = false
7272
strip = true
7373
lto = true
7474
codegen-units = 1
75+
panic = "abort"
76+
opt-level = "s"

0 commit comments

Comments
 (0)