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
MutableArrayData::with_capacities allows specifying the capacity for concatenating arrays. Unfortunately the Capacities::List variant does not seem to be supported by the method, leading to a lot of reallocations when concatenating list arrays.
alamb
changed the title
Specifying capacities for ListArrays is not supported in MutableArrayData
Support specifying capacities for ListArrays in MutableArrayDataJun 23, 2022
Describe the bug
MutableArrayData::with_capacities
allows specifying the capacity for concatenating arrays. Unfortunately theCapacities::List
variant does not seem to be supported by the method, leading to a lot of reallocations when concatenating list arrays.Thanks to @pbillaut for the investigation!
To Reproduce
The following test panics with
Expected behavior
Capacities::List
should be supported and initialize the correct buffer size for child arrays.Additional context
Capacities support was added in #382
The text was updated successfully, but these errors were encountered: