3 ms·
"the size increase can be large when the binary has a lot of contagious zeros in it."
by lftl 16y ago
"the size increase can be large when the binary has a lot of contagious zeros in it."
- bshep 16y agoI think what they mean is that if your decompressed binary has long chunks of zeroes which compress really well, when it is encrypted (thanks DRM) those long series of zeroes get changed to non-reapeating data and are no longer easily compressible. Usually: sizeof(compress(data)) <= sizeof(compress(encrypt(data)))
- zyb09 16y agoWhy not first compressing then encrypting?
- gst 16y agoYou can't really compress encrypted data. If it's encrypted it looks more or less like random data. So any encryption is very likely to result in a (minor) size increase, when compared to the original.
- bshep 16y agoThat's what I was trying to say in my comment.
- lftl 16y agoI suppose you might conceivably actually call them "contagious" zeroes rather than contiguous zeroes in that case.