Skip to content

Commit

Permalink
Merge pull request #195 from libp2p/zstd-window-size
Browse files Browse the repository at this point in the history
reduce the zstd window size from 8 MB to 32 KB
  • Loading branch information
marten-seemann committed Feb 24, 2021
2 parents 3fcebc8 + 6f26698 commit 870bb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/quic/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 870bb16

Please sign in to comment.