mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Revert "core: improve the prefetcher concurrency allowance"
This reverts commit 4ed539f88e.
This commit is contained in:
parent
0cceb45d68
commit
9c8ad7e372
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
|
workers errgroup.Group
|
||||||
reader = statedb.Reader()
|
reader = statedb.Reader()
|
||||||
)
|
)
|
||||||
workers.SetLimit(4 * runtime.NumCPU() / 5) // Aggressively run the prefetching
|
workers.SetLimit(runtime.NumCPU() / 2)
|
||||||
|
|
||||||
// Iterate over and process the individual transactions
|
// Iterate over and process the individual transactions
|
||||||
for i, tx := range block.Transactions() {
|
for i, tx := range block.Transactions() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue