diff --git a/perf/src/sigverify.rs b/perf/src/sigverify.rs index d58f27879b..a7c37a30f0 100644 --- a/perf/src/sigverify.rs +++ b/perf/src/sigverify.rs @@ -517,18 +517,11 @@ pub fn shrink_batches(batches: &mut Vec) { pub fn ed25519_verify_cpu(batches: &mut [PacketBatch], reject_non_vote: bool, packet_count: usize) { debug!("CPU ECDSA for {}", packet_count); PAR_THREAD_POOL.install(|| { - batches - .par_iter_mut() - .flatten() - .collect::>() - .par_chunks_mut(VERIFY_PACKET_CHUNK_SIZE) - .for_each(|packets| { - for packet in packets.iter_mut() { - if !packet.meta().discard() && !verify_packet(packet, reject_non_vote) { - packet.meta_mut().set_discard(true); - } - } - }); + batches.par_iter_mut().flatten().for_each(|packet| { + if !packet.meta().discard() && !verify_packet(packet, reject_non_vote) { + packet.meta_mut().set_discard(true); + } + }); }); }