-
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
Elmattic/actors review c1 #1368
Conversation
// a slice of runs, a bitfield of this size should not exceed 2MiB of memory. | ||
// | ||
// This bitfield can fit at least 3072 sparse elements. | ||
const MAX_ENCODED_SIZE: usize = 32 << 10; |
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.
why not 1 << 15
? i assume there is a reason, just curious!
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.
This is a copy pasta of the way go-bitfield
defines the constant.
filecoin-project/go-bitfield@3478657
I guess they write it like this to make 32KiB
more visible :)
Please rebase on |
4b19a56
to
b2fd311
Compare
Summary of changes
Changes introduced in this pull request:
BitField
UnvalidatedBitField
UnvalidatedBitField
and corresponding testReference issue to close (if applicable)
Closes #1329, #1330
Other information and links