fr32: Reduce MTTresh from 32M to 512k per core

This results in 64x less bytes allocated when spawning new readers
for larger pieces.

Results in about 30% speedup in 1G unpad benchmark on AMD TR 2950x
This commit is contained in:
Łukasz Magiera 2021-12-09 16:14:47 +01:00 committed by Jennifer Wang
parent b4c1e340ea
commit 46ba2b6b4f

View File

@ -8,7 +8,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
)
var MTTresh = uint64(32 << 20)
var MTTresh = uint64(512 << 10)
func mtChunkCount(usz abi.PaddedPieceSize) uint64 {
threads := (uint64(usz)) / MTTresh