-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C++] Copy bitmap all at once when casting from string-view to offset string and binary types #43573
Comments
Implementation tip from the linked comment thread:
@llama90 @mapleFU, any of you interested in implementing this improvement? |
@felipecrv I think the |
I think this is due to "append bit to bitmap", Copy Bitmap is just like a memcpy, however, append bit to bitmap is a bit-or for everybit, which would be slower |
Sorry for late replying, should I start this after #43302 is merged ? |
@mapleFU got it. It seems like we need to build array data without using builder. Can i have a chance to optimize it after #43302 merged? |
Just go ahead 👍 |
Yes. This issue is about improving part of what #43302 does. And I recommend not trying to do it right away because aas @buaazhwb already noticed, it will require building arrays without the array builders and custom code will be needed for classic string arrays and string view arrays. |
@buaazhwb the cast is merged, this can be move forward, would you still like to try this? |
Hello, since this feature has not been worked on actively for a while, I just opened a PR for it. Please take a look and let me know if you have any suggestions! |
Describe the enhancement requested
Builders append one bit to the validity bitmap on every value, but that is unnecessarily slow when casting arrays as casts don't have to transform the validity bitmap in any way.
#43302 (comment)
Component(s)
C++
The text was updated successfully, but these errors were encountered: