You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve FlattenRecursively by making it materialize fewer intermediate array values
This function is used to flatten a multi-level nested logical list Arrays.
There are multiple ways to batch the copying of data of deeply-nested lists without allocating a new Array per level.
For instance, if you are flattening a fixed_size_list<fixed_size_list<int32>, 2>, 3> without bitmaps on the internal arrays of values, you can gather blocks containing 2 * 3 32-bit integers from the innermost values array to a pre-allocated destination ArrayData.
felipecrv
changed the title
[C++] Improving FlattenRecursively by making it create intermediate array values
[C++] Improve FlattenRecursively by making it materialize fewer intermediate array values
Apr 13, 2024
Describe the enhancement requested
Improve
FlattenRecursively
by making it materialize fewer intermediate array valuesThis function is used to flatten a multi-level nested logical list Arrays.
There are multiple ways to batch the copying of data of deeply-nested lists without allocating a new Array per level.
For instance, if you are flattening a
fixed_size_list<fixed_size_list<int32>, 2>, 3>
without bitmaps on the internal arrays of values, you can gather blocks containing2 * 3
32-bit integers from the innermost values array to a pre-allocated destinationArrayData
.Comes from : #41092 (comment)
Component(s)
C++
The text was updated successfully, but these errors were encountered: