We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94c90c commit 891e568Copy full SHA for 891e568
relations/src/gr1cs/constraint_system.rs
@@ -849,8 +849,13 @@ impl<F: Field> ConstraintSystem<F> {
849
850
// Now, Go over all the linear combinations and create a new witness for each
851
// instance variable you see
852
- cfg_iter_mut!(self.lc_map).for_each(|lc| {
853
- for (_, var) in lc {
+ #[cfg(feature = "parallel")]
+ let lc_vars_iter_mut = self.lc_map.lc_vars_iter_mut();
854
+ #[cfg(not(feature = "parallel"))]
855
856
+
857
+ lc_vars_iter_mut.for_each(|lc| {
858
+ for var in lc {
859
if var.is_instance() {
860
*var = instance_to_witness_map[var.index().unwrap()];
861
} else if var.is_one() {
0 commit comments