Skip to content

Don't store CID in disk if it maps to an all zero chunk #7

Description

@dowdt

If a chunk is made up of all zeroes it will always map to the same CID, so we don't need to actually store it.

This might be relatively common, as chunks are filled with zeroes when padded or when a disconnection happens.

To implement

Have a "zero cid" global that is computed on an init function for one of our modules (Probably "resource pool"), which will make an all zero buffer and compute the CID to compare it.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions