mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-10 13:19:04 +00:00
core/state: improve the prefetcher concurrency allowance (#32071)
Improve the prefetcher concurrency allowance.
This commit is contained in:
parent
c7b8924fe4
commit
6eab053088
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue