1
0
mirror of https://github.com/nxshock/zkv.git synced 2024-11-27 11:21:02 +05:00
zkv/defaults.go
nxshock 5f0d33828f Improve store read speed
by skipping store blocks
2022-12-11 21:00:36 +05:00

18 lines
308 B
Go

package zkv
import (
"runtime"
"github.com/klauspost/compress/zstd"
)
var defaultOptions = Options{
MaxParallelReads: runtime.NumCPU(),
CompressionLevel: zstd.SpeedDefault,
MemoryBufferSize: 4 * 1024 * 1024,
DiskBufferSize: 1 * 1024 * 1024,
useIndexFile: true,
}
const indexFileExt = ".idx"