Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When casting from null, currently new buffers are allocated for every batch of the computation. This is wasteful as for simple types data buffers are preallocated and the null bitmap is handled separately; CastFromNull need do no work at all (unless we decide to explicitly zero the data buffer). For varlength out types the offsets buffer is preallocated and should be zeroed, for struct types preallocation is not implemented (but should be as simple as preallocating each child array).
Attachments
Issue Links
- is related to
-
ARROW-13121 [C++][Compute] Extract preallocation logic from KernelExecutor
- Open