From 6eab053088e343a84a60691fec8228959afbe76e Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Sat, 21 Jun 2025 07:00:32 +0200 Subject: [PATCH] core/state: improve the prefetcher concurrency allowance (#32071) Improve the prefetcher concurrency allowance. --- core/state_prefetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go index f3129f57cd..2f40e3dc97 100644 --- a/core/state_prefetcher.go +++ b/core/state_prefetcher.go @@ -57,7 +57,7 @@ func (p *statePrefetcher) Prefetch(block *types.Block, statedb *state.StateDB, c workers errgroup.Group reader = statedb.Reader() ) - workers.SetLimit(runtime.NumCPU() / 2) + workers.SetLimit(4 * runtime.NumCPU() / 5) // Aggressively run the prefetching // Iterate over and process the individual transactions for i, tx := range block.Transactions() {