Skip to content

Commit

Permalink
chore: add capacity parameter for points_to_add
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Sep 23, 2024
1 parent 52c6463 commit a5a32bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion banderwagon/src/msm_windowed_sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl MSMPrecompWindowSigned {
})
.collect();

let mut points_to_add = Vec::new();
let mut points_to_add = Vec::with_capacity(self.num_windows);

for window_idx in 0..self.num_windows {
for (scalar_idx, scalar_bytes) in scalars_bytes.iter().enumerate() {
Expand Down

0 comments on commit a5a32bb

Please sign in to comment.