[ 
https://issues.apache.org/jira/browse/ARROW-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Sun updated ARROW-8659:
----------------------------
    Component/s: Rust

> [Rust] ListBuilder and FixedSizeListBuilder capacity
> ----------------------------------------------------
>
>                 Key: ARROW-8659
>                 URL: https://issues.apache.org/jira/browse/ARROW-8659
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust
>            Reporter: Raphael Taylor-Davies
>            Assignee: Raphael Taylor-Davies
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to