Skip to content

Commit

Permalink
make disabled version of ed25519_verify use threading correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpyattaev authored and Alex Pyattaev committed Jan 2, 2025
1 parent 70d6e58 commit f6ec641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions perf/src/sigverify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ pub fn ed25519_verify_cpu(batches: &mut [PacketBatch], reject_non_vote: bool, pa
pub fn ed25519_verify_disabled(batches: &mut [PacketBatch]) {
let packet_count = count_packets_in_batches(batches);
debug!("disabled ECDSA for {}", packet_count);
batches.iter_mut().for_each(|batch| {
batch
.iter_mut()
.for_each(|p| p.meta_mut().set_discard(false))
PAR_THREAD_POOL.install(|| {
batches.par_iter_mut().flatten().for_each(|packet| {
packet.meta_mut().set_discard(false);
});
});
}

Expand Down

0 comments on commit f6ec641

Please sign in to comment.