-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-39565: [C++] Do not concatenate ChunkedArray when running take function #39566
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
Closed
Closed
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
371a12d
Proof of concept
amol- 224f7b3
All tests passing
amol- e713108
Remove debug prints
amol- 59f356c
lint
amol- 1460f6a
Switch to usage of ChunkResolver to lookup indices
amol- 9247f04
Identify indices type by id
amol- fba913e
reorder includes
amol- fc8377b
preallocate indices vector, we already know the size
amol- 2a84e1b
Do an explicit cast
amol- 43ef048
Edit test to account for chunked result
amol- f15cd04
ChunkResolver more robust to out of bound indices
amol- 967c697
Speed up test
amol- d4420b3
Major speedup when taking 1 element from a chunk
amol- 901e986
Improve typing
amol- 17de3aa
Further speed up by using pointers math
amol- 10d44b4
Fix detection of out of bounds indices
amol- bc15cec
lint
amol- a5b0eef
Fast implementation of TakeCA
amol- 2b78740
No need to concatenate anymore, it's fast enough
amol- 0f7f395
Remove max_index check in ChunkResolver
amol- 05dccec
remove unecessary reindent
amol- b0b3026
Speed up by using a builder
amol- a6f9da3
Minor speed up by preallocating target array
amol- c6991b1
Do not create temporary Array and ArraySpan
amol- 3be4d94
Preallocate indices builders
amol- d5d2885
hint optimization
amol- 505e0f7
Speed up for incremental indices
amol- 1a10e0a
Latest state of the code, not working atm
amol- File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.