[ https://issues.apache.org/jira/browse/ARROW-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raphael Taylor-Davies updated ARROW-8659: ----------------------------------------- Summary: [Rust] ListBuilder and FixedSizeListBuilder capacity (was: ListBuilder and FixedSizeListBuilder capacity) > [Rust] ListBuilder and FixedSizeListBuilder capacity > ---------------------------------------------------- > > Key: ARROW-8659 > URL: https://issues.apache.org/jira/browse/ARROW-8659 > Project: Apache Arrow > Issue Type: Improvement > Reporter: Raphael Taylor-Davies > Assignee: Raphael Taylor-Davies > Priority: Minor > > Both ListBuilder and FixedSizeListBuilder accept a values_builder as a > constructor argument and then set the capacity of their internal builders > based off the length of this values_builder. Unfortunately at construction > time this values_builder is normally empty, and consequently programs spend > an unnecessary amount of time reallocating memory. > > This should be addressed by adding new constructor methods that allow > specifying the desired capacity upfront. > > -- This message was sent by Atlassian Jira (v8.3.4#803005)