Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit f5d0605

Browse files
Increase dev mode opt-level for curve25519-dalek crate (#7220)
* increase dev mode opt-level for curve25519-dalek crate * add comment to give context on bumping up the opt-level
1 parent fa9095b commit f5d0605

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
[profile.dev]
22
split-debuginfo = "unpacked"
33

4+
# The curve25519-dalek crate uses the `simd` backend by default in v4 if
5+
# possible, which has very slow performance on some platforms with opt-level 0,
6+
# which is the default for `dev` and `test` builds. This slowdown causes
7+
# certain interactions in the solana-test-validator, such as verifying ZK
8+
# proofs in transactions, to take much more than 400ms, creating problems in
9+
# the test environment. To give better performance in the solana-test-validator
10+
# during tests and dev builds, override the opt-level to 3 for the crate.
11+
[profile.dev.package.curve25519-dalek]
12+
opt-level = 3
13+
414
[workspace]
515
members = [
616
"associated-token-account/client",

0 commit comments

Comments
 (0)