Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression results are hard to read if numbers are very large #2694

Closed
scottchiefbaker opened this issue Jun 4, 2021 · 0 comments · Fixed by #2702
Closed

Compression results are hard to read if numbers are very large #2694

scottchiefbaker opened this issue Jun 4, 2021 · 0 comments · Fixed by #2702

Comments

@scottchiefbaker
Copy link
Contributor

Is your feature request related to a problem? Please describe.

After compressing a file in the CLI some summary text is outputted listing the size before and after compression. If the file is sufficiently large it's very hard to determine the file size visually. This is because the size is reported in bytes. A file that is 200 megabytes has nine digits, and a file that is 20 megabyte has eight digits. Files with large sizes like this are very hard to compare.

Describe the solution you'd like

Instead of reporting the file size in bytes, instead report in a more human readable string format.

Current:
:zstd input.bin
input.bin            : 45.57%   (200836721 => 91519541 bytes, input.bin.zst)
Proposed:
:zstd input.bin
input.bin            : 45.57%   (199.1M => 89.4M bytes, input.bin.zst)

Describe alternatives you've considered

Other than training myself to visually compare 10 digit numbers (unlikely) I don't see an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants