What is NoCompression?

I am trying to use gzip package - compress/gzip - Go Packages and it works as expected when used DefaultCompression and I tried using NoCompression and I found similar with default one.

So, what does NoCompression do? I expected it should not compress, but it’s compressing.

Can you share more information about the compression ratio or the file types you are trying to compress?
Are you trying to compress an already compressed file?

I am just trying to understand what it does? I should expect some ratio of compression or no compression at all?

Level 0 (NoCompression) does not attempt any compression; it only adds the necessary DEFLATE framing.

Data compression ratio:

1 Like