Commits


Raphael Taylor-Davies authored and Chao Sun committed 8f6421133ce
ARROW-8659: [Rust] ListBuilder allocate with_capacity 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 PR adds new constructor methods that allow specifying the desired capacity upfront. Closes #7076 from tustvold/builder-capacity Authored-by: Raphael Taylor-Davies <r.taylordavies@googlemail.com> Signed-off-by: Chao Sun <sunchao@apache.org>