diff --git a/src/plonk/better_better_cs/cs.rs b/src/plonk/better_better_cs/cs.rs index 81638ebe..48d17a6b 100644 --- a/src/plonk/better_better_cs/cs.rs +++ b/src/plonk/better_better_cs/cs.rs @@ -1434,12 +1434,12 @@ impl_assembly!{ self.individual_table_canonical_sorted_entries.insert(table_name.clone(), entries_as_arrays); self.individual_table_entries_lookups.insert(table_name.clone(), entries_into_table_row); let buffer_for_current_table = if let Some(mut buffer) = self.reusable_buffer_for_lookup_entries.pop(){ - unsafe{ - buffer.set_len(0); - }; + buffer.clear(); + buffer }else{ - println!("allocating new buffer for table {}", table_name); + // println!("allocating new buffer for table {}", table_name); + new_vec_with_allocator!(0) };