nexus-xyz / nexus-zkvm

The Nexus zkVM: The zero-knowledge virtual machine
https://docs.nexus.xyz
Apache License 2.0
736 stars 238 forks source link

Set opt-level to 3 #250

Closed duc-nx closed 3 months ago

duc-nx commented 3 months ago

Set opt-level to 3

Summary:

Test Plan:

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nexus-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 8:56pm
yoichi-nexus commented 3 months ago

This PR contains changes in #249, which need revision. So I'm keeping my blocking review.

duc-nx commented 3 months ago

Now the profile in cargo.tom is:

[profile.release]
codegen-units = 1
lto = true
opt-level = 3

[profile.bench]
inherits = "release"
debug = true
duc-nx commented 3 months ago

PR #252 test the optimized build of SDK in CI., See log here:

https://github.com/nexus-xyz/nexus-zkvm/actions/runs/10116238507/job/27978718653?pr=252