Skip to content

Commit

Permalink
avoid realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Aug 28, 2023
1 parent f9838c1 commit 4520afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk/permutation/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Assembly {
}

// Pre-compute commitments for the URS.
let mut commitments = vec![];
let mut commitments = Vec::with_capacity(p.columns.len());
for i in 0..p.columns.len() {
// Computes the permutation polynomial based on the permutation
// description in the assembly.
Expand Down

0 comments on commit 4520afe

Please sign in to comment.