Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile SVD to binary for packaging #167

Open
BenBE opened this issue Jan 31, 2023 · 0 comments
Open

Compile SVD to binary for packaging #167

BenBE opened this issue Jan 31, 2023 · 0 comments

Comments

@BenBE
Copy link

BenBE commented Jan 31, 2023

Given that there is an XML schema for the SVD files, it might be an idea to use this information to avoid redundancy when encoding SVD files for the release.

As far as I could see in the source of this repo, the parser currently mostly tries to map the plain XML into the components according to the schema definition. As there's no need to load this structure from the XML file itself, any equivalent format that can be transformed back into this tree structure from the XML files should do.

Thus instead of releasing a package with all the 5.4GiB (which BTW compresses nicely down to ~114M with bzip2), one could replace the various tags from the schema with short binary sequences and thus safe on storage that way. Going further one could even go as far as compressing multiple files together and only storing differences between the various chips compared to some base file.

One option for the encoding may be Protobuf, another one would be EBML (cf. RFC 8794). Given how structured the data usually is, even writing a small streaming reader/writer with a proprietary format could be a viable option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant