feat(engine): enable prewarming & caching by default (#15630)

This commit is contained in:
Alexey Shekhirin
2025-04-09 03:27:05 -07:00
committed by GitHub
parent 73b9294072
commit e261a2e205
4 changed files with 32 additions and 20 deletions

View File

@@ -53,8 +53,8 @@ pub struct PayloadProcessor<N, Evm> {
trie_metrics: MultiProofTaskMetrics,
/// Cross-block cache size in bytes.
cross_block_cache_size: u64,
/// Whether transactions should be executed on prewarming task.
use_transaction_prewarming: bool,
/// Whether transactions should not be executed on prewarming task.
disable_transaction_prewarming: bool,
/// Determines how to configure the evm for execution.
evm_config: Evm,
_marker: std::marker::PhantomData<N>,
@@ -68,7 +68,7 @@ impl<N, Evm> PayloadProcessor<N, Evm> {
execution_cache: Default::default(),
trie_metrics: Default::default(),
cross_block_cache_size: config.cross_block_cache_size(),
use_transaction_prewarming: config.use_caching_and_prewarming(),
disable_transaction_prewarming: config.disable_caching_and_prewarming(),
evm_config,
_marker: Default::default(),
}
@@ -235,7 +235,7 @@ where
+ Clone
+ 'static,
{
if !self.use_transaction_prewarming {
if self.disable_transaction_prewarming {
// if no transactions should be executed we clear them but still spawn the task for
// caching updates
transactions.clear();