mirror of https://github.com/xythrez/RustMP.git
Updated split_iterators to use Vec::with_capacity instead of Vec::new.
This commit is contained in:
parent
d7745fd38a
commit
56aa88fbbd
|
@ -121,8 +121,7 @@ impl ThreadPoolManager {
|
|||
where
|
||||
T: Iterator<Item = S>,
|
||||
{
|
||||
let mut split = Vec::new();
|
||||
split.reserve_exact(self.num_threads);
|
||||
let mut split = Vec::with_capacity(self.num_threads);
|
||||
for _ in 0..self.num_threads {
|
||||
split.push(Vec::new());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue