-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported shared code to temp variables in ExprEvaluator. #893
Conversation
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.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 328 at r1 (raw file):
#[test] fn test_expr_eval() {
This was a pain to keep up to date, doesn't mean much to the reader, and became kind of redundant with the repr test.
388f168
to
0036fae
Compare
13e7730
to
6a8182b
Compare
0036fae
to
8750fad
Compare
6a8182b
to
22d6538
Compare
8750fad
to
229f7ab
Compare
22d6538
to
86f314a
Compare
229f7ab
to
3fab82f
Compare
86f314a
to
1ed3739
Compare
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.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2
.
Benchmark suite | Current: 0b14862 | Previous: cd8b37b | Ratio |
---|---|---|---|
iffts/simd ifft/22 |
12620057 ns/iter (± 260219 ) |
6306399 ns/iter (± 210024 ) |
2.00 |
merkle throughput/simd merkle |
30039533 ns/iter (± 251957 ) |
13712527 ns/iter (± 579195 ) |
2.19 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @shaharsamocha7
3fab82f
to
5ba84c7
Compare
1ed3739
to
92a18c4
Compare
5ba84c7
to
794145d
Compare
92a18c4
to
91ce7f8
Compare
794145d
to
7a94c0a
Compare
91ce7f8
to
c45d810
Compare
57cde32
to
159714d
Compare
c45d810
to
e88e970
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #893 +/- ##
==========================================
+ Coverage 91.83% 91.92% +0.08%
==========================================
Files 93 93
Lines 13339 13721 +382
Branches 13339 13721 +382
==========================================
+ Hits 12250 12613 +363
- Misses 972 999 +27
+ Partials 117 109 -8 ☔ View full report in Codecov by Sentry. |
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.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 328 at r1 (raw file):
Previously, Alon-Ti wrote…
This was a pain to keep up to date, doesn't mean much to the reader, and became kind of redundant with the repr test.
yes this is not a good test
159714d
to
e49c0a4
Compare
e88e970
to
d88f160
Compare
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.
Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @Alon-Ti and @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 245 at r3 (raw file):
pub logup: FormalLogupAtRow, pub temp_vars: Vec<(String, Expr)>, cur_temp_var_index: usize,
.len()
crates/prover/src/constraint_framework/expr.rs
line 255 at r3 (raw file):
constraints: Default::default(), logup: FormalLogupAtRow::new(INTERACTION_TRACE_IDX, has_partial_sum, log_size), temp_vars: vec![],
Suggestion:
intermediates
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.
Reviewed 1 of 2 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Alon-Ti)
crates/prover/src/constraint_framework/expr.rs
line 318 at r3 (raw file):
} else { unreachable!(); }
Change to match
Code quote:
if let Expr::Mul(one, constraint) = Expr::one() * constraint {
assert_eq!(*one, Expr::one());
self.constraints.push(*constraint);
} else {
unreachable!();
}
d88f160
to
e350aa7
Compare
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.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 245 at r3 (raw file):
Previously, ohad-starkware (Ohad) wrote…
.len()
Done.
crates/prover/src/constraint_framework/expr.rs
line 318 at r3 (raw file):
Previously, shaharsamocha7 wrote…
Change to match
Done.
crates/prover/src/constraint_framework/expr.rs
line 255 at r3 (raw file):
constraints: Default::default(), logup: FormalLogupAtRow::new(INTERACTION_TRACE_IDX, has_partial_sum, log_size), temp_vars: vec![],
Done.
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.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @Alon-Ti and @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 311 at r1 (raw file):
fn add_constraint<G>(&mut self, constraint: G) where Self::EF: std::ops::Mul<G, Output = Self::EF>,
add From to the trait function, and use .into here instead of all this
Code quote:
Self::EF: std::ops::Mul<G, Output = Self::EF>
e49c0a4
to
6de095b
Compare
e350aa7
to
6501f2a
Compare
584af24
to
1a8cb5c
Compare
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @ohad-starkware and @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 311 at r1 (raw file):
Previously, ohad-starkware (Ohad) wrote…
add From to the trait function, and use .into here instead of all this
Fixed in 901.
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.
Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @Alon-Ti and @ohad-starkware)
crates/prover/src/constraint_framework/expr.rs
line 265 at r5 (raw file):
} pub fn add_temp_var(&mut self, expr: Expr) -> Expr {
do we want to call it temp_var or intermediate?
In all places
Code quote:
pub fn add_temp_var(&mut self, expr: Expr) -> Expr {
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @Alon-Ti and @shaharsamocha7)
1a8cb5c
to
0b14862
Compare
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @shaharsamocha7)
crates/prover/src/constraint_framework/expr.rs
line 265 at r5 (raw file):
Previously, shaharsamocha7 wrote…
do we want to call it temp_var or intermediate?
In all places
Done.
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.
Reviewed 2 of 2 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Alon-Ti)
No description provided.