Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

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 b3d6573 + 11ca32d commit fc9aa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 fc9aa0e

Please sign in to comment.