Skip to content

Commit

Permalink
set thread pool minimum size to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Jan 24, 2025
1 parent 61f092c commit 11643f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const SPARSE_TRIE_INCREMENTAL_LEVEL: usize = 2;
/// NOTE: this value can be greater than the available cores in the host, it
/// represents the maximum number of threads that can be handled by the pool.
pub(crate) fn thread_pool_size() -> usize {
std::thread::available_parallelism().map_or(4, |num| (num.get() / 2).max(4))
std::thread::available_parallelism().map_or(3, |num| (num.get() / 2).max(3))
}

/// Outcome of the state root computation, including the state root itself with
Expand Down

0 comments on commit 11643f7

Please sign in to comment.