-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor proof handling for ownership and borrowing (#1214)
* refactor: Refactor proof handling for ownership and borrowing On a long enough timeline, we'll want to generate compressed proofs without dropping the associated `RecursiveProof`. This is for the purpose of re-starting the proof using the prior `RecursiveProof`, which at the moment can only be obtained through cloning prior to compression. The current approach witnesses that compression only requires a reference to the current proof, and returns a `Cow`: the only situation in which this would result in a clone is if: - we create a `CompressedProof`, - we call `compress()` on it, - we further perform a modificaiton of that `CompressedProof` that requires an owned value.. In detail: - Updated `compress` function across various files to take `&self` instead of `self`, avoiding the drop of the `RecursiveProof`; - Adjusted dependencies in chain-server's `Cargo.toml` to use workspace versions, streamlining dependency management and increasing project consistency. * chore: clippy * chore: update pointer to arecibo
- Loading branch information
1 parent
4266b15
commit 0d2ae13
Showing
8 changed files
with
46 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0d2ae13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks
Table of Contents
Overview
This benchmark report shows the Fibonacci GPU benchmark.
NVIDIA L4
Intel(R) Xeon(R) CPU @ 2.20GHz
32 vCPUs
125 GB RAM
Workflow run: https://github.com/lurk-lab/lurk-rs/actions/runs/8344216227
Benchmark Results
LEM Fibonacci Prove - rc = 100
ref=4266b151841e4f10e4245856fc465ae08494bda6
ref=0d2ae13ceb55963aa4be94b65fb3d0194f92b411
num-100
1.47 s
(✅ 1.00x)1.46 s
(✅ 1.00x faster)num-200
2.80 s
(✅ 1.00x)2.78 s
(✅ 1.00x faster)LEM Fibonacci Prove - rc = 600
ref=4266b151841e4f10e4245856fc465ae08494bda6
ref=0d2ae13ceb55963aa4be94b65fb3d0194f92b411
num-100
1.84 s
(✅ 1.00x)1.86 s
(✅ 1.01x slower)num-200
3.04 s
(✅ 1.00x)3.04 s
(✅ 1.00x slower)Made with criterion-table