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:
parent
b4c1e340ea
commit
46ba2b6b4f
2
extern/sector-storage/fr32/fr32.go
vendored
2
extern/sector-storage/fr32/fr32.go
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user