Skip to content

Commit 891e568

Browse files
committed
Add comments
1 parent b94c90c commit 891e568

File tree

2 files changed

+375
-105
lines changed

2 files changed

+375
-105
lines changed

relations/src/gr1cs/constraint_system.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,13 @@ impl<F: Field> ConstraintSystem<F> {
849849

850850
// Now, Go over all the linear combinations and create a new witness for each
851851
// instance variable you see
852-
cfg_iter_mut!(self.lc_map).for_each(|lc| {
853-
for (_, var) in lc {
852+
#[cfg(feature = "parallel")]
853+
let lc_vars_iter_mut = self.lc_map.lc_vars_iter_mut();
854+
#[cfg(not(feature = "parallel"))]
855+
let lc_vars_iter_mut = self.lc_map.lc_vars_iter_mut();
856+
857+
lc_vars_iter_mut.for_each(|lc| {
858+
for var in lc {
854859
if var.is_instance() {
855860
*var = instance_to_witness_map[var.index().unwrap()];
856861
} else if var.is_one() {

0 commit comments

Comments
 (0)