-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: read and write support for forest.car.zst files #3213
Conversation
eae9728
to
213c80c
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.
Looks good but it's really big for a single PR!
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.
I'd have to spend at least a few days to understand this PR, so accepting on the basis of "I didn't see any intentional malicious code here", faith and a green checkmark.
@@ -0,0 +1,66 @@ | |||
// Copyright 2019-2023 ChainSafe Systems |
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.
Is this benchmark compiled in the CI?
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 is not. :( We'll fix that in a follow-up PR.
impl CarIndexBuilder { | ||
// Number of buckets given `len` number of elements | ||
pub fn capacity_at(len: usize) -> usize { | ||
len * 100 / 81 |
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's not clear where are those numbers coming from to me.
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's the load-factor. I'll add some more documentation.
Summary of changes
Changes introduced in this pull request:
snapshot compress
command for generating.forest.car.zst
files..car
,.car.zst
or.forest.car.zst
.Reference issue to close (if applicable)
Closes
Other information and links
Change checklist