You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2021/06/23 07:36:00 UTC

[jira] [Created] (ARROW-13147) [Java] Respect the rounding policy when allocating vector buffers

Liya Fan created ARROW-13147:
--------------------------------

             Summary: [Java] Respect the rounding policy when allocating vector buffers
                 Key: ARROW-13147
                 URL: https://issues.apache.org/jira/browse/ARROW-13147
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
            Reporter: Liya Fan
            Assignee: Liya Fan


According to the current implementation, the default "next power of two" rounding policy is assumed when allocating buffers for a vector. 

In particular, for fixed width vectors, this policy is applied for the validity and data buffers, and for variable width vectors, this policy is applied for the validity and offset buffers. 

However, this default policy is not always used for the allocator. When an alternative policy is in use, the buffers allocated assuming the default policy will have inappropriate capacities, which may lead to waste of memory spaces. 




--
This message was sent by Atlassian Jira
(v8.3.4#803005)