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

[C#] Array Builders should take an initial capacity in their constructors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C#
    • Labels:
      None

      Description

      When using the Fluent Array Builder API, we should take in an initial capacity in the constructor, so we can avoid allocating unnecessary memory.

      Today, if you create a builder, and then .Reserve(length) on it, the initial byte[] that was created in the constructor is wasted.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eerhardt Eric Erhardt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: