-
Notifications
You must be signed in to change notification settings - Fork 18
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
Initial support for compressed data blobs with zstd compression #83
Merged
hallyn
merged 7 commits into
project-machine:master
from
ariel-miculas:initial_support_for_zstd_compression
Apr 6, 2023
Merged
Initial support for compressed data blobs with zstd compression #83
hallyn
merged 7 commits into
project-machine:master
from
ariel-miculas:initial_support_for_zstd_compression
Apr 6, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Ariel Miculas <[email protected]>
Signed-off-by: Ariel Miculas <[email protected]>
hm, not sure if this is a result of this patch, but i see that when I create a new fs, the index.json has:
instead of all one string like
|
Other than that it looks good. It won't auto-merge, so I'll hit approve. |
hallyn
previously approved these changes
Apr 4, 2023
That's definitely not intended behavior, fs_verity shouldn't appear in |
Signed-off-by: Ariel Miculas <[email protected]>
Signed-off-by: Ariel Miculas <[email protected]>
Default to no compression in puzzlefs builds and zstd compression in tests. This commit adds a new field in BlobRef which stores whether the blob is compressed or not. Per blob information is useful if we want to skip compressing the blob in cases where the compressed version has a larger size than the uncompressed version (e.g. when the blob is already compressed or it has a high enough entropy that it cannot be compressed further). Signed-off-by: Ariel Miculas <[email protected]>
The main reason for this change is to be able to use std::io::Cursor, an in-memory buffer which can be used as a replacement for File. This is useful because we want to compress blobs in-memory and only write them to disk if they take up less space than the uncompressed blob. Signed-off-by: Ariel Miculas <[email protected]>
Signed-off-by: Ariel Miculas <[email protected]>
ariel-miculas
force-pushed
the
initial_support_for_zstd_compression
branch
from
April 6, 2023 10:28
169bc9d
to
53f62f8
Compare
Diff:
|
hallyn
approved these changes
Apr 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #14