[ethereum/go-ethereum] ethash: use numcpu instead of maxprocs (#16847)

«`
func GOMAXPROCS(n int) int {
lock(&sched.lock)
ret := int(gomaxprocs)
unlock(&sched.lock)
if n <= 0 || n == ret { return ret } stopTheWorld("GOMAXPROCS") // newprocs will be processed by startTheWorld newprocs = int32(n) startTheWorld() return ret } ``` Apparently it only stops the world if you specify something > 0. Querying the number shouldn’t stop it. Did you manage to measure any performance impact of this change?

Добавить комментарий