Skip to content

Commit

Permalink
chore: fix concurrent portion
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Kindi-0 committed Sep 4, 2024
1 parent 4e6d3ab commit c93ec35
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions sumcheck/src/prover/high_degree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ fn sumcheck_round<E: FieldElement>(
let eq_at_zero = eq_ml.evaluations()[2 * i];
let eq_at_one = eq_ml.evaluations()[2 * i + 1];

// add evaluation of periodic columns
periodic_table.get_periodic_values_at(2 * i, &mut evals_zero[num_mls..]);
periodic_table.get_periodic_values_at(2 * i + 1, &mut evals_one[num_mls..]);

Expand Down Expand Up @@ -421,20 +422,9 @@ fn sumcheck_round<E: FieldElement>(
let eq_at_zero = eq_ml.evaluations()[2 * i];
let eq_at_one = eq_ml.evaluations()[2 * i + 1];

let periodic_at_zero = periodic_table.get_periodic_values_at(2 * i);
let periodic_at_one = periodic_table.get_periodic_values_at(2 * i + 1);

// add evaluation of periodic columns
evals_zero
.iter_mut()
.skip(num_mls)
.enumerate()
.for_each(|(i, ev)| *ev = periodic_at_zero[i]);
evals_one
.iter_mut()
.skip(num_mls)
.enumerate()
.for_each(|(i, ev)| *ev = periodic_at_one[i]);
periodic_table.get_periodic_values_at(2 * i, &mut evals_zero[num_mls..]);
periodic_table.get_periodic_values_at(2 * i + 1, &mut evals_one[num_mls..]);

// compute the evaluation at 1
evaluator.evaluate_query(
Expand Down

0 comments on commit c93ec35

Please sign in to comment.