Skip to content

Commit

Permalink
Add release configuration for maximum performance + native CPU features
Browse files Browse the repository at this point in the history
Now that Sha1 is integrated, this seems in order ;)
  • Loading branch information
Byron committed Jun 25, 2020
1 parent 6057cce commit 07859cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rustflags = "-C target-cpu=native"
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ anyhow = "1.0.31"
structopt = "0.3.14"

[profile.release]
panic = 'unwind'
overflow-checks = false
lto = "fat"
panic = 'abort'
codegen-units = 1
incremental = false

[workspace]
Expand Down
8 changes: 8 additions & 0 deletions demos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ test = false
git-odb = { version = "0.1.0", path = "../gitoxide-odb" }
rayon = "1.3.0"
anyhow = "1.0.31"

[profile.release]
overflow-checks = false
lto = "fat"
panic = 'abort'
codegen-units = 1
incremental = false

0 comments on commit 07859cb

Please sign in to comment.