Skip to content

Commit

Permalink
Change Triton-VM compile optimization flag to 0 for dev & tests
Browse files Browse the repository at this point in the history
Otherwise it takes 20+ minutes to compile on some machine. This should
reduce compile times to max five minutes.

If you need or want other optimization flags set, please do so on you
own environment only, don't change these flags for other developers.
  • Loading branch information
Sword-Smith committed Jan 11, 2024
1 parent 4b61dff commit 4a7a215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ version = "1"

# needed because it otherwise takes too long to sign transaction with STARK proofs
[profile.dev.package.triton-vm]
opt-level = 3
opt-level = 0

[profile.release.package.triton-vm]
opt-level = 3
Expand All @@ -76,7 +76,7 @@ opt-level = 3
opt-level = 3

[profile.test.package.triton-vm]
opt-level = 3
opt-level = 0

# [profile.test]
# opt-level = 0 # change to 3 for shorter test running times but much longer test compilation time
Expand Down

0 comments on commit 4a7a215

Please sign in to comment.