-
Notifications
You must be signed in to change notification settings - Fork 166
feat: use zstd compressed cars as blockstores #3149
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
Conversation
0a8f2f3
to
3bdd327
Compare
|
71c3069
to
3348fec
Compare
123eb3c
to
4f01f5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
assert_eq!( | ||
unsigned_varint::io::read_usize(&[0xFD, 0x2F, 0xB5, 0x28][..]).unwrap(), | ||
6141, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it belong in the runtime? It seems like something we could check at compile time, though this read_usize
probably is not const
. Perhaps it would belong more in tests if anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of the assertion is to illustrate why we can't easily tell whether an archive is compressed or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to add some integration tests for this subcommand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it would be great to add some bin tests under tests/
18151a0
to
758e582
Compare
BLS | ||
callee | ||
CAR/SM | ||
CARv1/SM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would just backquote terms like CARv1
to bypass spell checker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent PoC. Love that compressed files are faster than uncompressed.
Summary of changes
Changes introduced in this pull request:
forest snapshot compress ...
compresses snapshots with many zstd frames.forest snapshot validate ...
now supports compressed snapshots prepared by the above.Other information and links
See also
#3085
#3074
Change checklist