klauspost / compress

Optimized Go Compression Packages
Other
4.77k stars 319 forks source link

zstd EncodeAll cost smaller cpu than zstd.NewWriter.Write() #960

Closed zdyj3170101136 closed 5 months ago

zdyj3170101136 commented 5 months ago

as my benchmark.

the zstd EncodeAll would save more cpu usage compare than zstd.NewWriter.

i recommand add these in README.

klauspost commented 5 months ago

It depends on your usage. I think there is enough blubber in the docs.

Also please use https://github.com/klauspost/compress/discussions for non-bugs.