Skip to content

Make the archiver store the padding length for each segment #3456

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

Open
teor2345 opened this issue Mar 25, 2025 · 0 comments
Open

Make the archiver store the padding length for each segment #3456

teor2345 opened this issue Mar 25, 2025 · 0 comments
Labels
improvement it is already working, but can be better networking Subspace networking (DSN)

Comments

@teor2345
Copy link
Member

In PR #3362, we try each possible segment padding length to reconstruct objects while minimising the number of pieces downloaded.

Instead of doing this, the archiver could store an array of segment padding lengths for each segment. Since there are only 4 possible padding lengths, this takes 2 bits per segment. (Or one byte per segment.)

@teor2345 teor2345 added improvement it is already working, but can be better networking Subspace networking (DSN) labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement it is already working, but can be better networking Subspace networking (DSN)
Projects
None yet
Development

No branches or pull requests

1 participant