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.
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
Improve performance of set_bits by avoiding to set individual bits #6288
Improve performance of set_bits by avoiding to set individual bits #6288
Changes from 45 commits
6e8c864
a81ba56
57634f2
32ff203
f94f312
e9cd77a
842c2b1
06de184
03b0db8
7faa5f3
e3d812d
13dec63
68cdaf2
1e9de38
f1e1bbd
f294663
39719c4
9fbb87d
74b9d80
25c309e
7905330
6dd9771
0e956cc
272ecbb
08ebf20
d751a7f
ef2864f
e69cf9a
b5f8bca
9c15417
533381a
dca9ab8
7f3c3fb
6ccedd2
ff2f3ca
fb46cb0
3fd5e3e
be3076e
58868c1
a15db14
fefafa7
d8c3f08
cc5ec2b
4c39dc8
f4789be
59fd805
7d81076
f185a19
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Could you add some
// SAFETY:
explanations to unsafe usages?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.
Updated
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 function doesn't limit reading bytes to be up 8 bytes. Do you want to add an assert?
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.
Thanks @viirya updated
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.
Could you please also add a test that is greater than 64 bits (not just = 64 bits)?
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.
Sure, I will add it. BTW there is an existing test https://github.com/apache/arrow-rs/blob/master/arrow-buffer/src/util/bit_mask.rs#L170
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 am working on some more tests too. Stay tuned...