-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Optimize code efficiency and update toolchain version (#1247)
- Optimized memory usage by employing efficient cloning through the `clone_from` method in `compute_coeffs` and `build_frames` functions. - Included the `#[allow(dead_code)]` attribute to the `CaseClause` struct and `Op` trait, to suppress possible warnings about unused codes. - Enhanced constancy in the `lurk-metrics/src/lib.rs` by making the `LOCAL_SINK` instantiation constant. - Upgraded the Rust toolchain channel from `1.76` to `1.78` in `rust-toolchain.toml`. - Improved clarity and standard compliance by renaming the .cargo/config file to .cargo/config.toml.
- Loading branch information
1 parent
7657353
commit 7febc96
Showing
8 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[toolchain] | ||
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy. | ||
profile = "default" | ||
channel = "1.76" | ||
channel = "1.78" | ||
targets = [ "wasm32-unknown-unknown" ] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,6 +249,7 @@ impl From<Op1> for u64 { | |
} | ||
} | ||
|
||
#[allow(dead_code)] | ||
pub(crate) trait Op | ||
where | ||
Self: 'static, | ||
|
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
7febc96
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/9331538473
Benchmark Results
LEM Fibonacci Prove - rc = 100
ref=76573535bef95ffcdf095a932a245baf2940e4a5
ref=7febc969474624e6cae8810a0c1e402da70ba2c6
num-100
1.51 s
(✅ 1.00x)1.48 s
(✅ 1.02x faster)num-200
2.85 s
(✅ 1.00x)2.84 s
(✅ 1.00x faster)LEM Fibonacci Prove - rc = 600
ref=76573535bef95ffcdf095a932a245baf2940e4a5
ref=7febc969474624e6cae8810a0c1e402da70ba2c6
num-100
1.88 s
(✅ 1.00x)1.87 s
(✅ 1.00x faster)num-200
3.09 s
(✅ 1.00x)3.06 s
(✅ 1.01x faster)Made with criterion-table