Skip to content

Commit 07859cb

Browse files
committed
Add release configuration for maximum performance + native CPU features
Now that Sha1 is integrated, this seems in order ;)
1 parent 6057cce commit 07859cb

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.cargo/config

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rustflags = "-C target-cpu=native"

Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ anyhow = "1.0.31"
1818
structopt = "0.3.14"
1919

2020
[profile.release]
21-
panic = 'unwind'
21+
overflow-checks = false
22+
lto = "fat"
23+
panic = 'abort'
24+
codegen-units = 1
2225
incremental = false
2326

2427
[workspace]

demos/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ test = false
1515
git-odb = { version = "0.1.0", path = "../gitoxide-odb" }
1616
rayon = "1.3.0"
1717
anyhow = "1.0.31"
18+
19+
[profile.release]
20+
overflow-checks = false
21+
lto = "fat"
22+
panic = 'abort'
23+
codegen-units = 1
24+
incremental = false
25+

0 commit comments

Comments
 (0)