Skip to content

Commit

Permalink
Assign custom names to the Rayon global thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and mergify[bot] committed Aug 22, 2022
1 parent 9daa410 commit 7bdeea1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,14 @@ impl Validator {
info!("entrypoint: {:?}", cluster_entrypoint);
}

if rayon::ThreadPoolBuilder::new()
.thread_name(|ix| format!("solRayonGlob{:02}", ix))
.build_global()
.is_err()
{
warn!("Rayon global thread pool already initialized");
}

if solana_perf::perf_libs::api().is_some() {
info!("Initializing sigverify, this could take a while...");
} else {
Expand Down

0 comments on commit 7bdeea1

Please sign in to comment.