Skip to content

Commit

Permalink
Merge pull request #31 from DanGould/optimize-perf-crates
Browse files Browse the repository at this point in the history
Optimize perf-critical crates in debug build
  • Loading branch information
DanGould authored Oct 27, 2022
2 parents 919dc3c + fdc45cc commit 43cc047
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ tonic = "0.6.2"
hyper = { version = "0.14.9", features = ["full"] }
hyper-tls = "0.5.0"
tokio-native-tls = "0.3"

# in dev mode optimize crates that are perf-critical (usually just crypto crates)
[profile.dev.package]
secp256k1 = { opt-level = 2 }
secp256k1-sys = { opt-level = 2 }
rand_core = { opt-level = 2 }
byteorder = { opt-level = 2 }

0 comments on commit 43cc047

Please sign in to comment.