Browse Source

Merge pull request #195 from libp2p/zstd-window-size

reduce the zstd window size from 8 MB to 32 KB
pull/1424/head
Marten Seemann 4 years ago
committed by GitHub
parent
commit
870bb163b3
  1. 2
      p2p/transport/quic/tracer.go

2
p2p/transport/quic/tracer.go

@ -82,7 +82,7 @@ func (l *qlogger) Close() error {
}
defer f.Close()
buf := bufio.NewWriter(f)
c, err := zstd.NewWriter(buf, zstd.WithEncoderLevel(zstd.SpeedFastest))
c, err := zstd.NewWriter(buf, zstd.WithEncoderLevel(zstd.SpeedFastest), zstd.WithWindowSize(32*1024))
if err != nil {
return err
}

Loading…
Cancel
Save