|
|
|
|
|
by GuB-42
743 days ago
|
|
I would use a better compressor than gzip but I have done this trick several times. xz or zstd may be better choices, or you can look at Hutter Prize [1] winners for best compression and therefore best entropy estimate. [1] http://prize.hutter1.net/ |
|
That's a good point. But the Hutter Prize is for compressing a 1 GB file. On inputs as short as a line of code, gzip doesn't do so badly. For a longer line:
For a shorter line: