Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

commonTrackFields is a premature optimization #53

@kixelated

Description

@kixelated

I understand the goal of commonTrackFields is to reduce the file size by eliminating some duplication, but is it necessary? It makes decoding more difficult, as some languages don't have a way of merging JSON structs. I'm not sure how to implement it in Go/Rust off the top of my head. It also makes it more difficult to merge catalogs, as you may need to unset commonTrackFields.

I don't think we should be worried about file size right now and there are many other (easy) techniques we could use instead, like gz compression. The JSON encoding should be the verbose, easy to parse, human readable encoding. We should eventually have an alternative binary encoding that can be converted 1:1 with the JSON encoding, utilizing lookup tables to avoid redundancy.

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