Skip to content

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

@scottchiefbaker

Description

@scottchiefbaker

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions