Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8659

[Rust] ListBuilder and FixedSizeListBuilder capacity

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

      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.

       

       

      Attachments

        Issue Links

          Activity

            People

              tustvold Raphael Taylor-Davies
              tustvold Raphael Taylor-Davies
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m