1
0
mirror of https://github.com/nxshock/zkv.git synced 2024-11-27 11:21:02 +05:00
zkv/defaults.go

15 lines
254 B
Go
Raw Normal View History

package zkv
2022-12-03 20:59:17 +05:00
import (
"runtime"
"github.com/klauspost/compress/zstd"
)
2022-12-03 12:55:42 +05:00
var defaultOptions = Options{
2022-12-03 20:59:17 +05:00
MaxParallelReads: runtime.NumCPU(),
2022-12-03 12:55:42 +05:00
CompressionLevel: zstd.SpeedDefault,
MemoryBufferSize: 4 * 1024 * 1024,
DiskBufferSize: 1 * 1024 * 1024,
}