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

Improve archive file sizes. #982

Merged
merged 5 commits into from
Jan 10, 2025
Merged

Improve archive file sizes. #982

merged 5 commits into from
Jan 10, 2025

Conversation

partim
Copy link
Member

@partim partim commented Dec 6, 2024

This PR attempts to improve the growth of (RRDP) archive files. It changes the strategy for updating objects that have grown in size to by trying to re-use empty space rather than just appending them.

This PR improves the growth of RRDP archive files. It tries to re-use existing empty space when updating objects. It also pads all objects to a multiple of 256 bytes to make it more likely that empty space can be reused.

The PR also adds a new command archive-stats that prints statistics for an archive file.

Finally, the PR raises the Minimum Supported Rust Version to 1.73 to be able to use u64::next_multiple_of.

@partim partim linked an issue Dec 6, 2024 that may be closed by this pull request
@partim partim requested a review from a team January 8, 2025 10:10
@partim
Copy link
Member Author

partim commented Jan 8, 2025

The PR has now been updated to also pad all objects to a multiple of 256 bytes. This seriously helps with reuse of empty space at the price of every object being a bit larger. It turned out in the long run that this helped quite a bit with curbing file growth.

@partim partim merged commit acefd03 into main Jan 10, 2025
10 checks passed
@partim partim deleted the archive-improvements branch January 10, 2025 11:07
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.

RRDP cache disk usage increases since updating to 0.14.0
2 participants