Skip to content

ipfs dag stat should return the compression ratio #8678

Open
@Jorropo

Description

@Jorropo

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

I would find neat if ipfs dag stat also displayed a float CumulatedSize (red from the block metadata when present) / Size (true size of IPFS blocks).
This would go below 1 for files that have a slight overhead due to roots taking up place.
And above 1 for things that reuse some blocks.

That is really easy to do as ipfs object stat already display the CumulatedSize.

The only thing I'm unsure if we want that, is the name, "compression ratio" sounds like we try to save space, while we don't it's mainly luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowkind/featureA new featurestatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions