Skip to content

Commit 6eab053

Browse files
authored
core/state: improve the prefetcher concurrency allowance (#32071)
Improve the prefetcher concurrency allowance.
1 parent c7b8924 commit 6eab053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state_prefetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (p *statePrefetcher) Prefetch(block *types.Block, statedb *state.StateDB, c
5757
workers errgroup.Group
5858
reader = statedb.Reader()
5959
)
60-
workers.SetLimit(runtime.NumCPU() / 2)
60+
workers.SetLimit(4 * runtime.NumCPU() / 5) // Aggressively run the prefetching
6161

6262
// Iterate over and process the individual transactions
6363
for i, tx := range block.Transactions() {

0 commit comments

Comments
 (0)