-
Notifications
You must be signed in to change notification settings - Fork 786
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
RleDecoder Inline Buffer #1061
Labels
enhancement
Any new improvement worthy of a entry in the changelog
Comments
tustvold
added
the
enhancement
Any new improvement worthy of a entry in the changelog
label
Dec 19, 2021
tustvold
added a commit
to tustvold/arrow-rs
that referenced
this issue
Dec 19, 2021
alamb
pushed a commit
that referenced
this issue
Dec 20, 2021
alamb
pushed a commit
that referenced
this issue
Dec 21, 2021
tustvold
added a commit
to tustvold/arrow-rs
that referenced
this issue
Jan 12, 2022
alamb
pushed a commit
that referenced
this issue
Jan 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
RleDecoder
has an buffer inlined within the struct here. This is perhaps surprising as it results in a struct that is 4Kb in size, with all the implications that has for the cost of moves, etc...I only noticed this because clippy's large enum variant lint tripped whilst working on #1054.
My solution there was to use
Box<RleDecoder>
but I think it might be better to heap allocate this buffer, especially since it is only used byRleDecoder::get_batch_with_dict
which may not even be called.Describe the solution you'd like
Change the type of
index_buf
from[i32; 1024]
toOption<Box<[i32; 1024]>>
Describe alternatives you've considered
It could be left unchanged
The text was updated successfully, but these errors were encountered: