perf: rm thread stack size bumps (#5089)

This commit is contained in:
Matthias Seitz
2023-10-19 13:55:36 +02:00
committed by GitHub
parent 6fd516f75e
commit 2f66662f62
2 changed files with 2 additions and 10 deletions

View File

@ -114,11 +114,7 @@ pub struct CliContext {
/// Creates a new default tokio multi-thread [Runtime](tokio::runtime::Runtime) with all features
/// enabled
pub fn tokio_runtime() -> Result<tokio::runtime::Runtime, std::io::Error> {
tokio::runtime::Builder::new_multi_thread()
.enable_all()
// increase stack size, mostly for RPC calls that use the evm: <https://github.com/paradigmxyz/reth/issues/3056> and <https://github.com/bluealloy/revm/issues/305>
.thread_stack_size(8 * 1024 * 1024)
.build()
tokio::runtime::Builder::new_multi_thread().enable_all().build()
}
/// Runs the given future to completion or until a critical task panicked

View File

@ -71,11 +71,7 @@ impl BlockingTaskPool {
/// Uses [`rayon::ThreadPoolBuilder::build`](rayon::ThreadPoolBuilder::build) defaults but
/// increases the stack size to 8MB.
pub fn build() -> Result<Self, rayon::ThreadPoolBuildError> {
Self::builder()
// increase stack size, mostly for RPC calls that use the evm: <https://github.com/paradigmxyz/reth/issues/3056> and <https://github.com/bluealloy/revm/issues/305>
.stack_size(8 * 1024 * 1024)
.build()
.map(Self::new)
Self::builder().build().map(Self::new)
}
/// Asynchronous wrapper around Rayon's