core: improve the prefetcher concurrency allowance

This commit is contained in:
Gary Rong 2025-06-10 14:43:04 +08:00
parent 954f28d26f
commit 4ed539f88e

View file

@ -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() {