Skip to content

Commit

Permalink
Eliminate some obviously useless threading (#4219)
Browse files Browse the repository at this point in the history
make disabled version of ed25519_verify use threading correctly and in the same way as non-disabled version
  • Loading branch information
alexpyattaev authored Jan 3, 2025
1 parent 062f86e commit 106a927
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.into_par_iter().for_each(|batch| {
batch
.par_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 106a927

Please sign in to comment.