Skip to content

Compact JSON in .zarray #704

@andreasg123

Description

@andreasg123

JSON output is deliberately made human-readable with much whitespace. That produces large .zarray files with string arrays and categorize. In one small example with about 150 different strings, the human-readable .zarray was 3837 bytes and the compact version was 1284 bytes. With a larger variety of strings, the difference would be larger.

As Zarr is a storage format that isn't intended for human readability, I would like to propose to write JSON with indent=None, separators=(",", ":").

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