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

Make serialized masks more compact. #108

Merged
merged 4 commits into from
Jun 2, 2023
Merged

Conversation

nwhitehorn
Copy link
Member

Cereal, by default, serializes std::vector with one byte per bool. Since only one bit is relevant, this uses eight times the disk space that is strictly needed. Pack the bits instead.

Closes #107.

Cereal, by default, serializes std::vector<bool> with one byte per bool.
Since only one bit is relevant, this uses eight times the disk space that
is strictly needed. Pack the bits instead.
@arahlin arahlin changed the title Make serialized maps more compact. Make serialized masks more compact. Jun 2, 2023
@arahlin arahlin self-requested a review June 2, 2023 16:37
@nwhitehorn nwhitehorn merged commit 75fc54b into master Jun 2, 2023
@arahlin arahlin deleted the more-compact-masks branch July 31, 2023 18:22
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

Successfully merging this pull request may close these issues.

G3SkyMapMask is not efficiently stored on disk
2 participants