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
{{ message }}
Repository navigation
[Parquet] Remove uses of ArrayData in favor of Direct Array construction #9128
I noticed on #9061 that there is non trivial overhead to array. I am trying to improve make_array in parallel, but @tustvold had an even better idea in #9058 (comment)
My 2 cents is it would be better to move the codepaths relying on ArrayData over to using the typed arrays directly, this should not only cut down on allocations but unnecessary validation and dispatch overheads.
An ArrayData has at least one extra allocation (for the Vec that holds Buffers) as well as a bunch of dynamic function calls. While this overhead is small individually, it is paid for every array so in aggregate it can be substantial
Describe the solution you'd like
Change relying on ArrayData over to using the typed arrays directly, this should not only cut down on allocations but unnecessary validation and dispatch overheads.
changed the title [-]Remove uses of ArrayData in favor of Direct Array construction[/-][+][Parquet] Remove uses of ArrayData in favor of Direct Array construction[/+]on Jan 12, 2026
Activity
perf: Avoid ArrayData allocation in PrimitiveArray::reinterpret_cast (#…
[-]Remove uses of ArrayData in favor of Direct Array construction[/-][+][Parquet] Remove uses of ArrayData in favor of Direct Array construction[/+][Parquet] perf: Create `PrimitiveArray`s directly rather than via `Ar…
[Parquet] perf: Create StructArrays directly rather than via `ArrayDa…
Improve docs and add build() method to `{Null,Boolean,}BufferBuilder` (…
perf: Avoid ArrayData allocation in PrimitiveArray::reinterpret_cast (a…
[Parquet] perf: Create `PrimitiveArray`s directly rather than via `Ar…
[Parquet] perf: Create StructArrays directly rather than via `ArrayDa…
[Parquet] perf: Create Utf8/BinaryViewArray directly rather than via …
alamb commentedon Jan 22, 2026
While I am not done with this I think I handld the major arrays -- primitive, struct and Views
I looked briefly at Lists and I concluded it was more complicated than I hoped. Likewise with string arrays, et
Thus I am going to back burner this work for a while and focus on higher priority items
alamb commentedon Jan 29, 2026
I filed a larger ticket to track similar ideas
ArrayDatawith direct Array construction, when possible #9298perf(arrow-cast): bench Int64 to temporal (apache#12318)