Skip to content

Commit

Permalink
Increase dev mode opt-level for curve25519-dalek crate (#7220)
Browse files Browse the repository at this point in the history
* increase dev mode opt-level for curve25519-dalek crate

* add comment to give context on bumping up the opt-level
  • Loading branch information
samkim-crypto authored Aug 30, 2024
1 parent fa9095b commit f5d0605
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
[profile.dev]
split-debuginfo = "unpacked"

# The curve25519-dalek crate uses the `simd` backend by default in v4 if
# possible, which has very slow performance on some platforms with opt-level 0,
# which is the default for `dev` and `test` builds. This slowdown causes
# certain interactions in the solana-test-validator, such as verifying ZK
# proofs in transactions, to take much more than 400ms, creating problems in
# the test environment. To give better performance in the solana-test-validator
# during tests and dev builds, override the opt-level to 3 for the crate.
[profile.dev.package.curve25519-dalek]
opt-level = 3

[workspace]
members = [
"associated-token-account/client",
Expand Down

0 comments on commit f5d0605

Please sign in to comment.