You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Eric Erhardt (JIRA)" <ji...@apache.org> on 2019/07/09 23:28:00 UTC

[jira] [Created] (ARROW-5896) [C#] Array Builders should take an initial capacity in their constructors

Eric Erhardt created ARROW-5896:
-----------------------------------

             Summary: [C#] Array Builders should take an initial capacity in their constructors
                 Key: ARROW-5896
                 URL: https://issues.apache.org/jira/browse/ARROW-5896
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C#
            Reporter: Eric Erhardt


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)