mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
bench_announce_scrape: use Vec::with_capacity for responses
This commit is contained in:
parent
9943e49d0e
commit
5d462f808d
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ fn main(){
|
|||
|
||||
println!("generating data..");
|
||||
|
||||
let mut responses = Vec::new();
|
||||
let mut responses = Vec::with_capacity(ANNOUNCE_ITERATIONS);
|
||||
|
||||
let mut announce_requests = create_announce_requests(&mut rng, &info_hashes);
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ fn main(){
|
|||
|
||||
println!("generating data..");
|
||||
|
||||
let mut responses = Vec::new();
|
||||
let mut responses = Vec::with_capacity(SCRAPE_ITERATIONS);
|
||||
|
||||
let mut scrape_requests = create_scrape_requests(&mut rng, &info_hashes);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue