You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zstd reports that compressing an empty file (i.e. 0 bytes) (which yields a 9 B archive) is a compression ratio of 900%. It's not.
It does, however, correctly, report that compressing a single-byte file to a 10 B archive is a compression ratio of 1000%.
While the compression ratio for empty files is essentially meaningless, the compression ratio 0->9 B is actually worse than 1->10 B, and it should be reported as such.
Describe the bug
zstd
reports that compressing an empty file (i.e. 0 bytes) (which yields a 9 B archive) is a compression ratio of 900%. It's not.It does, however, correctly, report that compressing a single-byte file to a 10 B archive is a compression ratio of 1000%.
While the compression ratio for empty files is essentially meaningless, the compression ratio 0->9 B is actually worse than 1->10 B, and it should be reported as such.
To Reproduce
$ touch empty $ zstd empty --no-check -o empty.zstd empty :900.00% ( 0 => 9 bytes, empty.zstd)
Expected behavior
Reporting inf %, or not reporting a compression ratio at all.
Desktop (please complete the following information):
*** zstd command line interface 64-bits v1.4.4, by Yann Collet ***
The text was updated successfully, but these errors were encountered: