-
I found that 1000 byte random strings are not compressed when I use flate compression, which is inconsistent with the behavior of the standard library. Does it meet your normal expectations? The link is to the random string generation algorithm: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no point in compressing them, if they cannot be compressed. It will just create (potentially) longer output and be much slower to decompress. The compressor will estimate if there are gains to compressing. If there is no or only a very small gain it will be stored uncompressed. |
Beta Was this translation helpful? Give feedback.
There is no point in compressing them, if they cannot be compressed.
It will just create (potentially) longer output and be much slower to decompress.
The compressor will estimate if there are gains to compressing. If there is no or only a very small gain it will be stored uncompressed.